class Guild
extends SnowflakeBase
Re-export
import { Guild } from "https://deno.land/x/harmony@v2.9.0/mod.ts";
Constructors
new
Guild(client: Client, data: GuildPayload)Properties
bans: GuildBans
channels: GuildChannelsManager
commands: GuildApplicationCommandsManager
emojis: GuildEmojisManager
optional
features: GuildFeatures[]invites: InviteManager
members: MembersManager
presences: GuildPresencesManager
roles: RolesManager
optional
verificationLevel: VerificationMethods
createIntegration(id: string, type: string): Promise<Guild>
Attach an integration object from the current user to the guild.
createTemplate(name: string, description?: string | null): Promise<Template>
Creates a template for the guild.
deleteIntegration(id: string): Promise<Guild>
Delete the attached integration object for the guild. Deletes any associated webhooks and kicks the associated bot if there is one.
deleteTemplate(code: string): Promise<Guild>
Deletes the template. Requires the MANAGE_GUILD permission.
discoverSplashURL(format?: ImageFormats, size?: ImageSize): string | undefined
Gets guild discover splash URL
editIntegration(id: string, data: { expireBehavior?: number | null; expireGracePeriod?: number | null; enableEmoticons?: boolean | null; }): Promise<Guild>
Modify the behavior and settings of an integration object for the guild.
editTemplate(code: string, data: { name?: string; description?: string; }): Promise<Template>
Modifies the template's metadata.
editWidget(data: { enabled?: boolean; channel?: string | GuildChannels; }): Promise<Guild>
Modify a guild widget object for the guild.
fetchAuditLog(options?: { user?: string | User; actionType?: AuditLogEvents; before?: string; limit?: number; }): Promise<AuditLog>
getPruneCount(options?: { days?: number; includeRoles?: Array<Role | string>; }): Promise<number>
getVanity(): Promise<{ code: string | null; uses: number; }>
Returns a partial invite object for guilds with that feature enabled.
getWidgetImageURL(style?: ): string
| "shield"
| "banner1"
| "banner2"
| "banner3"
| "banner4"
Returns a PNG (URL) image widget for the guild.
readFromData(data: GuildPayload): void