import { GuildManager } from "https://deno.land/x/higa@0.1.2/mod.ts";
Constructors
Methods
addGuildMemberRole(): Promise<GuildMember>
guildId: string,
userId: string,
roleId: string,
reason?: string,
Adds a role to a guild member
createGuildChannel(guildId: string, option: CreateGuildChannelOptions): Promise<Channel>
Creates a guild channel.
deleteGuildIntegrations(): Promise<void>
guildId: string,
integrationId: string,
reason?: string,
Deletes a integrations of a guild.
deleteGuildRole(): Promise<void>
guildId: string,
roleId: string,
reason?: string,
Deletes a role from a guild
getGuildBans(guildId: string, options?: GetGuildBansOptions): Promise<Ban[]>
Gets the bans of a guild
GetGuildPruneCount(guildId: string, options: GetGuildPruneCountOptions): Promise<GuildPruneCountResponse>
Gets the number of members that would be removed in a prune operation
getGuildWidgetSettings(guildId: string): Promise<GuildWidgetSettings>
Gets the widget settings of a guild.
listActiveThreads(guildId: string): Promise<ListActiveThreadsResponse>
List active threads in a guild
listGuildMembers(guildId: string, option?: ListGuildMembersOptions): Promise<GuildMember[]>
Lists all the members in a guild.
modifyCurrentUserVoiceState(guildId: string, options: ModifyCurentUserVoiceStateOption): Promise<void>
Modify the current user voice state
modifyGuildChannelPosition(guildId: string, option: ModifyGuildChannelPositionOptions): Promise<void>
Modify the position of a guild channel
modifyGuildRolePosition(): Promise<Role[]>
Modify the positions of a set of role objects for the guild
modifyGuildWelcomeScreen(guildId: string, options: ModifyWelcomeScreenOption): Promise<WelcomeScreen>
Modified the welcome screen of a guild.
RemoveGuildBan(): Promise<Ban>
guildId: string,
userId: string,
reason?: string,
Removes the ban of a user in a guild.
removeGuildMember(): Promise<void>
guildId: string,
userId: string,
reason?: string,
Removes a guild member
removeGuildMemberRole(): Promise<GuildMember>
guildId: string,
userId: string,
roleId: string,
reason?: string,
Removes a role to a guild member
searchGuildMembers(guildId: string, option?: SearchGuildMembersOptions): Promise<GuildMember[]>
Searches for members in a guild.