Methods
addRole
- addRole(guildId: string, memberId: string, roleId: string): Promise<never>
-
Parameters
-
guildId: string
-
memberId: string
-
roleId: string
Returns Promise<never>
ban
- ban(guildId: string, memberId: string, extra?: RESTPutAPIGuildBanJSONBody): Promise<never>
-
Parameters
-
guildId: string
-
memberId: string
-
Optional extra: RESTPutAPIGuildBanJSONBody
Returns Promise<never>
edit
- edit(guildId: string, memberId?: string, data: RESTPatchAPIGuildMemberJSONBody): Promise<APIGuildMember>
-
Parameters
-
guildId: string
-
memberId: string = '@me'
-
data: RESTPatchAPIGuildMemberJSONBody
Returns Promise<APIGuildMember>
get
- get(guildId: string, memberId: string): Promise<APIGuildMember>
-
Parameters
-
guildId: string
-
memberId: string
Returns Promise<APIGuildMember>
getMany
- getMany(guildId: string, query: RESTGetAPIGuildMembersSearchQuery): Promise<RESTGetAPIGuildMembersSearchResult>
-
Parameters
-
guildId: string
-
query: RESTGetAPIGuildMembersSearchQuery
Returns Promise<RESTGetAPIGuildMembersSearchResult>
kick
- kick(guildId: string, memberId: string, reason?: string): Promise<never>
-
Parameters
-
guildId: string
-
memberId: string
-
Optional reason: string
Returns Promise<never>
removeRole
- removeRole(guildId: string, memberId: string, roleId: string): Promise<never>
-
Parameters
-
guildId: string
-
memberId: string
-
roleId: string
Returns Promise<never>
setNickname
- setNickname(guildId: string, memberId?: string, nick?: null | string): Promise<Required<RESTPatchAPICurrentGuildMemberNicknameJSONBody>>
-
Parameters
-
guildId: string
-
memberId: string = '@me'
-
nick: null | string = null
Returns Promise<Required<RESTPatchAPICurrentGuildMemberNicknameJSONBody>>
unban
- unban(guildId: string, memberId: string): Promise<never>
-
Parameters
-
guildId: string
-
memberId: string
Returns Promise<never>
Members resource