import { Guild } from "https://deno.land/x/denocordts@1.2.0/src/structures/Guild/mod.ts";
Properties
optional
channels: (TextChannel | ThreadChannel | GuildNewsChannel)[]features: GuildFeature[]
stickers: GuildSticker[]
Methods
addRoleToGuildMember(unnamed 0: { userId: Snowflake; roleId: Snowflake; reason?: string; })
changeChannelPosition(unnamed 0: { channelId: Snowflake; position: number; parentId?: Snowflake; lockPermissions?: boolean; reason?: string; })
changeClientNickname(unnamed 0: { nickname: string; reason?: string; })
createChannel(unnamed 0: { name: string; channelType: keyof ChannelType; topic?: string; bitrate?: number; userLimit?: number; slowMode?: number; position?: number; parentId: Snowflake; nsfw?: boolean; autoArchiveDuration?: ; reason?: string; })
| 60
| 1440
| 4320
| 10080
createRole(unnamed 0: { name: string; permission: (keyof PermissionFlagsBits)[]; color?: ColorResolvable; displaySeparatelyInSidebar?: boolean; mentionable?: boolean; reason?: string; })
deleteIntegration(integrationId: string): Promise<void>
Delete Integration
deleteRole(unnamed 0: { roleId: Snowflake; reason?: string; })
deleteSticker(stickerId: string): Promise<void>
fetchGuildBan(unnamed 0: { userId: Snowflake; })
fetchGuildBans(limit?: number)
Used to fetch Guild Bans, Will fetch top 10 if limit isn't specified
fetchGuildMember(userId: Snowflake)
getGuildIntegrations(): Promise<GuildIntegration[]>
Returns a List of Integrations for the Guild
modifyRole(unnamed 0: { name: string; permission?: (keyof PermissionFlagsBits)[] | bigint; color?: ColorResolvable; displaySeparatelyInSidebar?: boolean; mentionable?: boolean; reason?: string; roleId: Snowflake; })
modifySticker(unnamed 0: { name: string; description: string; tags: string; stickerId: string; })
removeGuildBan(unnamed 0: { userId: Snowflake; reason?: string; })
removeGuildMember(unnamed 0: { userId: Snowflake; reason?: string; })
removeRoleFromGuildMember(unnamed 0: { reason?: string; userId: Snowflake; roleId: Snowflake; })