Methods
createRole
- createRole(guildId: string, data: RESTPostAPIGuildRoleJSONBody): Promise<APIRole>
-
Parameters
-
guildId: string
-
data: RESTPostAPIGuildRoleJSONBody
Returns Promise<APIRole>
deleteRole
- deleteRole(guildId: string, roleId: string): Promise<never>
-
Parameters
-
guildId: string
-
roleId: string
Returns Promise<never>
edit
- edit(guildId: string, data: RESTPatchAPIGuildJSONBody): Promise<APIGuild>
-
Parameters
-
guildId: string
-
data: RESTPatchAPIGuildJSONBody
Returns Promise<APIGuild>
editRole
- editRole(guildId: string, roleId: string, data: RESTPatchAPIGuildRoleJSONBody): Promise<APIRole>
-
Parameters
-
guildId: string
-
roleId: string
-
data: RESTPatchAPIGuildRoleJSONBody
Returns Promise<APIRole>
get
- get(guildId: string, withCount?: boolean): Promise<APIGuild>
-
Parameters
-
guildId: string
-
withCount: boolean = false
Returns Promise<APIGuild>
getAuditLogs
- getAuditLogs(guildId: string, query: RESTGetAPIAuditLogQuery): Promise<APIAuditLog>
-
Parameters
-
guildId: string
-
query: RESTGetAPIAuditLogQuery
Returns Promise<APIAuditLog>
getRoles
- getRoles(guildId: string): Promise<RESTGetAPIGuildRolesResult>
-
Parameters
Returns Promise<RESTGetAPIGuildRolesResult>
leave
- leave(guildId: string): Promise<never>
-
Parameters
Returns Promise<never>
Guilds resource