import { Guild } from "https://deno.land/x/biscuit@0.2.4/mod.ts";
Represents a guild.
Constructors
new
Guild(session: Session, data: DiscordGuild)Properties
defaultMessageNotificationLevel: DefaultMessageNotificationLevels
The default message notification level.
optional
widgetChannelId: SnowflakeThe channel id that the widget will generate an invite to, or undefined if set to no invite.
Methods
editBotNickname(options: editBotNickOptions): Promise<(string | undefined)>
edits the bot's nickname in the guild. 'null' would reset the nickname.
editEmoji(id: Snowflake, options: ModifyGuildEmoji): Promise<GuildEmoji>
edits an emoji in the guild.
editMember(memberId: Snowflake, options: ModifyGuildMember): Promise<Member>
edits a member in the guild.
fetchInvite(inviteCode: string, options: Routes.GetInvite): Promise<Invite>
gets an invite from the guild.
getActiveThreads(): Promise<Omit<ReturnThreadsArchive, "hasMore">>
gets the active threads in the guild.
setDiscoverySplash(discoverySplash: string): Promise<Guild>
Sets a new guild discovery splash image. Same as Guild.edit({..., discoverySplashURL: 'discoverySplashURL'})
Static Methods
create(session: Session, options: GuildCreateOptions): Promise<Guild>
Creates a guild and returns its data, the bot joins the guild This was modified from discord.js to make it compatible precondition: Bot should be in less than 10 servers