- Preparing search index...
- The search index is not available
TouchGuild
Methods
awardMember
- awardMember(guildID: string, memberID: string, amount: number): Promise<number>
-
Parameters
-
guildID: string
-
memberID: string
-
amount: number
Returns Promise<number>
awardRole
- awardRole(guildID: string, roleID: number, amount: number): Promise<void>
-
Parameters
-
guildID: string
-
roleID: number
-
amount: number
Returns Promise<void>
createBan
- createBan(guildID: string, memberID: string, reason?: string): Promise<BannedMember>
-
Parameters
-
guildID: string
-
memberID: string
-
Optional
reason: string
createWebhook
- createWebhook(guildID: string, channelID: string, name: string): Promise<Webhook>
-
Parameters
-
guildID: string
-
channelID: string
-
name: string
Returns Promise<Webhook>
deleteChannel
- deleteChannel(channelID: string): Promise<void>
-
Returns Promise<void>
deleteWebhook
- deleteWebhook(guildID: string, webhookID: string): Promise<void>
-
Parameters
-
guildID: string
-
webhookID: string
Returns Promise<void>
editChannel
- editChannel<T>(channelID: string, options: EditChannelOptions): Promise<T>
-
Returns Promise<T>
editMember
- editMember(guildID: string, memberID: string, options: EditMemberOptions): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
-
Returns Promise<void>
editWebhook
- editWebhook(guildID: string, webhookID: string, options: EditWebhookOptions): Promise<Webhook>
-
Parameters
-
guildID: string
-
webhookID: string
-
Returns Promise<Webhook>
getBan
- getBan(guildID: string, memberID: string): Promise<BannedMember>
-
Parameters
-
guildID: string
-
memberID: string
getGuild
- getGuild(guildID: string): Promise<Guild>
-
Returns Promise<Guild>
getMember
- getMember(guildID: string, memberID: string): Promise<Member>
-
Parameters
-
guildID: string
-
memberID: string
Returns Promise<Member>
getMembers
- getMembers(guildID: string): Promise<Member[]>
-
Returns Promise<Member[]>
getWebhook
- getWebhook(guildID: string, webhookID: string): Promise<Webhook>
-
Parameters
-
guildID: string
-
webhookID: string
Returns Promise<Webhook>
getWebhooks
- getWebhooks(guildID: string, channelID: string): Promise<Webhook[]>
-
Parameters
-
guildID: string
-
channelID: string
Returns Promise<Webhook[]>
memberAddGroup
- memberAddGroup(groupID: string, memberID: string): Promise<void>
-
Parameters
-
groupID: string
-
memberID: string
Returns Promise<void>
memberAddRole
- memberAddRole(guildID: string, memberID: string, roleID: number): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
-
roleID: number
Returns Promise<void>
memberRemoveGroup
- memberRemoveGroup(groupID: string, memberID: string): Promise<void>
-
Parameters
-
groupID: string
-
memberID: string
Returns Promise<void>
memberRemoveRole
- memberRemoveRole(guildID: string, memberID: string, roleID: number): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
-
roleID: number
Returns Promise<void>
removeBan
- removeBan(guildID: string, memberID: string): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
Returns Promise<void>
removeMember
- removeMember(guildID: string, memberID: string): Promise<void>
-
Parameters
-
guildID: string
-
memberID: string
Returns Promise<void>
setMemberXP
- setMemberXP(guildID: string, memberID: string, amount: number): Promise<number>
-
Parameters
-
guildID: string
-
memberID: string
-
amount: number
Returns Promise<number>
Award a member using the built-in EXP system.