Guild
Represents a Fluxer guild (server).
Extends Base
Constructor
Properties
: string | nullAFK voice channel ID, or null if none.
: numberAFK timeout in seconds.
: Collection<string, GuildChannel>Cached channels in this guild.
: DefaultMessageNotificationsDefault notification level for members.
: Collection<string, GuildEmoji>Cached emojis in this guild.
: GuildExplicitContentFilterExplicit content filter level.
: GuildFeature[]Features enabled for this guild.
: string | nullIcon hash (use iconURL to get full CDN URL).
: string (readonly)Snowflake ID of this guild.
: GuildMemberManagerMember manager for this guild (fetch/add/remove members).
: GuildMFALevelMFA level required for moderation actions.
: stringGuild name.
: GuildNSFWLevelNSFW level for this guild.
: stringUser ID of the guild owner.
: Collection<string, Role>Cached roles in this guild.
: string | nullRules channel ID (for Community guilds), or null if none.
: string | nullInvite splash hash (use splashURL to get full CDN URL).
?: number | nullSplash height in pixels.
?: number | nullSplash width in pixels.
: Collection<string, GuildSticker>Cached stickers in this guild.
: string | nullSystem messages channel ID, or null if none.
: string | nullVanity invite code if the guild has one.
: GuildVerificationLevelVerification level required for members to send messages.
Methods
(body: DiscoveryApplicationOptions): Promise<DiscoveryApplicationPayload>Apply for guild discovery.
| Param | Type | Description |
|---|---|---|
| body | DiscoveryApplicationOptions |
(userId: string, options?: GuildBanOptions): Promise<void>Ban a user from the guild. Requires Ban Members. `ban_duration_seconds`: 0 = permanent.
| Param | Type | Description |
|---|---|---|
| userId | string | |
| options? | GuildBanOptions |
(sourceEmojiId: string): Promise<GuildEmoji>Clone an emoji from another guild. Requires Manage Emojis and Stickers.
| Param | Type | Description |
|---|---|---|
| sourceEmojiId | string |
(sourceStickerId: string): Promise<GuildSticker>Clone a sticker from another guild. Requires Manage Emojis and Stickers.
| Param | Type | Description |
|---|---|---|
| sourceStickerId | string |
(data: ChannelCreateRequest): Promise<GuildChannel>Create a channel. `data.type`: 0=text, 2=voice, 4=category, 998=link (set `url`). Requires Manage Channels.
| Param | Type | Description |
|---|---|---|
| data | ChannelCreateRequest |
(options: { name: string; image: string; }): Promise<GuildEmoji>Create a new emoji in this guild. Requires Manage Emojis and Stickers.
| Param | Type | Description |
|---|---|---|
| options | { name: string; image: string; } |
(emojiList: Array<{ name: string; image: string }>): Promise<{ success: GuildEmoji[]; failed: Array<{ name: string; error: string }> }>Create multiple emojis at once (bulk operation).
| Param | Type | Description |
|---|---|---|
| emojiList | Array<{ name: string; image: string }> |
(options: RoleCreateOptions): Promise<Role>Create a role. `permissions` accepts a bitfield string or PermissionResolvable.
| Param | Type | Description |
|---|---|---|
| options | RoleCreateOptions |
(options: { name: string; image: string; description?: string | null; tags?: string[]; }): Promise<GuildSticker>Create a new sticker in this guild. Requires Manage Emojis and Stickers.
| Param | Type | Description |
|---|---|---|
| options | { name: string; image: string; description?: string | null; tags?: string[]; } |
(stickerList: Array<{ name: string; image: string; description?: string; tags?: string[] }>): Promise<{ success: GuildSticker[]; failed: Array<{ name: string; error: string }> }>Create multiple stickers at once (bulk operation).
| Param | Type | Description |
|---|---|---|
| stickerList | Array<{ name: string; image: string; description?: string; tags?: string[] }> |
(options?: SudoVerificationOptions): Promise<void>Delete this guild (owner only). User accounts may need sudo/MFA in `options`.
| Param | Type | Description |
|---|---|---|
| options? | SudoVerificationOptions |
(options: GuildEditOptions): Promise<this>Edit guild settings. Requires guild owner or Administrator.
| Param | Type | Description |
|---|---|---|
| options | GuildEditOptions |
(body: DiscoveryApplicationOptions): Promise<DiscoveryApplicationPayload>Edit an existing discovery application.
| Param | Type | Description |
|---|---|---|
| body | DiscoveryApplicationOptions |
(code: string | null): Promise<VanityURLPayload>Edit the guild's vanity invite code.
| Param | Type | Description |
|---|---|---|
| code | string | null |
(options?: { limit?: number; before?: string; after?: string; userId?: string; actionType?: AuditLogActionType; }): Promise<AuditLogFetchPayload>Fetch audit log entries. Requires View Audit Log.
| Param | Type | Description |
|---|---|---|
| options? | { limit?: number; before?: string; after?: string; userId?: string; actionType?: AuditLogActionType; } |
(): Promise<GuildBan[]>Fetch all bans in this guild. Requires Ban Members.
(): Promise<GuildChannel[]>Fetch all channels in this guild from the API.
(): Promise<DiscoveryStatusPayload>Fetch the guild's discovery status.
(emojiId: string): Promise<GuildEmoji>Fetch a specific emoji by ID.
| Param | Type | Description |
|---|---|---|
| emojiId | string |
(): Promise<GuildEmoji[]>Fetch all emojis in this guild from the API.
(codeOrUrl: string): Promise<Invite>Fetch a specific invite by code or URL.
| Param | Type | Description |
|---|---|---|
| codeOrUrl | string |
(): Promise<Invite[]>Fetch all invites in this guild. Requires Manage Guild.
(): Promise<GuildMember>Fetch the bot's own member object in this guild.
(userId: string): Promise<GuildMember>Fetch a guild member by user ID.
| Param | Type | Description |
|---|---|---|
| userId | string |
(roleId: string): Promise<Role>Fetch a specific role by ID.
| Param | Type | Description |
|---|---|---|
| roleId | string |
(): Promise<Role[]>Fetch all roles in this guild from the API.
(stickerId: string): Promise<GuildSticker>Fetch a specific sticker by ID.
| Param | Type | Description |
|---|---|---|
| stickerId | string |
(): Promise<GuildSticker[]>Fetch all stickers in this guild from the API.
(): Promise<VanityURLPayload>Fetch the guild's vanity invite URL (if available).
(): Promise<Webhook[]>Fetch all webhooks in this guild.
(options?: { size?: number; }): string | nullGet the full CDN URL for the guild's icon (or null).
| Param | Type | Description |
|---|---|---|
| options? | { size?: number; } |
(userId: string): Promise<void>Kick a user from the guild. Requires Kick Members.
| Param | Type | Description |
|---|---|---|
| userId | string |
(): Promise<Role[]>Reset all role hoist positions to zero. Returns cached Role instances.
(arg: string): Promise<string | null>Resolve role mention, snowflake, or name to a role ID.
| Param | Type | Description |
|---|---|---|
| arg | string |
(updates: ChannelPositionUpdate[]): Promise<void>Update channel positions (reordering).
| Param | Type | Description |
|---|---|---|
| updates | ChannelPositionUpdate[] |
(updates: Array<{ id: string; hoistPosition?: number }>): Promise<Role[]>Update role hoist positions (visual separator groups). Returns cached Role instances.
| Param | Type | Description |
|---|---|---|
| updates | Array<{ id: string; hoistPosition?: number }> |
(updates: Array<{ id: string; position?: number }>): Promise<Role[]>Update role positions (reordering). Returns cached Role instances.
| Param | Type | Description |
|---|---|---|
| updates | Array<{ id: string; position?: number }> |
(options?: { size?: number; }): string | nullGet the full CDN URL for the guild's invite splash (or null).
| Param | Type | Description |
|---|---|---|
| options? | { size?: number; } |
(newOwnerId: string, password?: string): Promise<void>Transfer guild ownership to another user (owner only).
| Param | Type | Description |
|---|---|---|
| newOwnerId | string | |
| password? | string |
(userId: string): Promise<void>Unban a user from the guild. Requires Ban Members.
| Param | Type | Description |
|---|---|---|
| userId | string |
(): Promise<void>Withdraw the guild's discovery application.