- Preparing search index...
- The search index is not available
TouchGuild
Methods
awardMember
- awardMember(guildID, memberID, amount): Promise<number>
-
Parameters
-
guildID: string
-
memberID: string
-
amount: number
Returns Promise<number>
awardRole
- awardRole(guildID, roleID, amount): Promise<void>
-
Parameters
-
guildID: string
-
roleID: number
-
amount: number
Returns Promise<void>
createBan
- createBan(guildID, memberID, reason?): Promise<BannedMember>
-
Parameters
-
guildID: string
-
memberID: string
-
Optional
reason: string
createChannel
- createChannel<T>(guildID, name, type, options?): Promise<T>
-
Parameters
-
guildID: string
-
name: string
-
-
Returns Promise<T>
createGroup
- createGroup(guildID, options): Promise<GuildGroup>
-
createRole
- createRole(guildID, options): Promise<GuildRole>
-
createWebhook
- createWebhook(guildID, channelID, name): Promise<Webhook>
-
Parameters
-
guildID: string
-
channelID: string
-
name: string
Returns Promise<Webhook>
deleteChannel
- deleteChannel(channelID): Promise<void>
-
Returns Promise<void>
deleteGroup
- deleteGroup(guildID, groupID): Promise<void>
-
Parameters
-
guildID: string
-
groupID: string
Returns Promise<void>
deleteRole
- deleteRole(guildID, roleID): Promise<void>
-
Parameters
-
guildID: string
-
roleID: number
Returns Promise<void>
deleteWebhook
- deleteWebhook(guildID, webhookID): Promise<void>
-
Parameters
-
guildID: string
-
webhookID: string
Returns Promise<void>
editChannel
- editChannel<T>(channelID, options): Promise<T>
-
Returns Promise<T>
editGroup
- editGroup(guildID, groupID, options): Promise<GuildGroup>
-
Parameters
-
guildID: string
-
groupID: string
-
editMember
- editMember(guildID, memberID, options): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
-
Returns Promise<void>
editRole
- editRole(guildID, roleID, options): Promise<GuildRole>
-
Parameters
-
guildID: string
-
roleID: number
-
editWebhook
- editWebhook(guildID, webhookID, options): Promise<Webhook>
-
Parameters
-
guildID: string
-
webhookID: string
-
Returns Promise<Webhook>
getBan
- getBan(guildID, memberID): Promise<BannedMember>
-
Parameters
-
guildID: string
-
memberID: string
getGroup
- getGroup(guildID, groupID): Promise<GuildGroup>
-
Parameters
-
guildID: string
-
groupID: string
getGuild
- getGuild(guildID): Promise<Guild>
-
Returns Promise<Guild>
getMember
- getMember(guildID, memberID): Promise<Member>
-
Parameters
-
guildID: string
-
memberID: string
Returns Promise<Member>
getMemberPermission
- getMemberPermission(guildID, memberID): Promise<Permissions[]>
-
Parameters
-
guildID: string
-
memberID: string
getMembers
- getMembers(guildID): Promise<Member[]>
-
Returns Promise<Member[]>
getRole
- getRole(guildID, roleID): Promise<GuildRole>
-
Parameters
-
guildID: string
-
roleID: number
getSubscription
- getSubscription(guildID, subscriptionID): Promise<GuildSubscription>
-
Parameters
-
guildID: string
-
subscriptionID: string
getWebhook
- getWebhook(guildID, webhookID): Promise<Webhook>
-
Parameters
-
guildID: string
-
webhookID: string
Returns Promise<Webhook>
getWebhooks
- getWebhooks(guildID, channelID): Promise<Webhook[]>
-
Parameters
-
guildID: string
-
channelID: string
Returns Promise<Webhook[]>
memberAddGroup
- memberAddGroup(groupID, memberID): Promise<void>
-
Parameters
-
groupID: string
-
memberID: string
Returns Promise<void>
memberAddRole
- memberAddRole(guildID, memberID, roleID): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
-
roleID: number
Returns Promise<void>
memberRemoveGroup
- memberRemoveGroup(groupID, memberID): Promise<void>
-
Parameters
-
groupID: string
-
memberID: string
Returns Promise<void>
memberRemoveRole
- memberRemoveRole(guildID, memberID, roleID): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
-
roleID: number
Returns Promise<void>
removeBan
- removeBan(guildID, memberID): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
Returns Promise<void>
removeMember
- removeMember(guildID, memberID): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
Returns Promise<void>
setMemberXP
- setMemberXP(guildID, memberID, amount): Promise<number>
-
Parameters
-
guildID: string
-
memberID: string
-
amount: number
Returns Promise<number>
updateRolePermission
- updateRolePermission(guildID, roleID, options): Promise<GuildRole>
-
Parameters
-
guildID: string
-
roleID: number
-
Award a member using the built-in EXP system.