Class: Guild
Hierarchy
↳
Guild
Constructors
constructor
• new Guild(client, data)
Parameters
| Name | Type |
|---|---|
client | Client |
data | GatewayGuildCreateDispatchData |
Overrides
Defined in
packages/libcord/src/structures/Guild.ts:38
Properties
afkChannelId
• afkChannelId: null | string
Defined in
packages/libcord/src/structures/Guild.ts:29
bans
• bans: GuildBanManager
Defined in
packages/libcord/src/structures/Guild.ts:31
channels
• channels: default
Defined in
packages/libcord/src/structures/Guild.ts:30
client
• Readonly client: Client
Inherited from
Defined in
packages/libcord/src/structures/Base.ts:8
data
• data: GatewayGuildCreateDispatchData
Defined in
packages/libcord/src/structures/Guild.ts:36
discoverySlash
• discoverySlash: null | string
Defined in
packages/libcord/src/structures/Guild.ts:26
icon
• icon: null | string
Defined in
packages/libcord/src/structures/Guild.ts:24
id
• Readonly id: string
Defined in
packages/libcord/src/structures/Guild.ts:22
members
• members: Collection<string, Member>
Defined in
packages/libcord/src/structures/Guild.ts:32
name
• name: string
Defined in
packages/libcord/src/structures/Guild.ts:23
owner
• owner: User
Defined in
packages/libcord/src/structures/Guild.ts:28
ownerId
• ownerId: string
Defined in
packages/libcord/src/structures/Guild.ts:27
roles
• roles: default
Defined in
packages/libcord/src/structures/Guild.ts:34
slash
• slash: null | string
Defined in
packages/libcord/src/structures/Guild.ts:25
slashCommands
• slashCommands: Collection<string, ApplicationCommand>
Defined in
packages/libcord/src/structures/Guild.ts:33
Accessors
afkChannel
• get afkChannel(): null | VoiceChannel
Returns
null | VoiceChannel
Defined in
packages/libcord/src/structures/Guild.ts:60
Methods
fetchApplicationCommands
▸ fetchApplicationCommands(cache?): Promise<ApplicationCommand[]>
get all applications commands of this guild
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
cache? | boolean | true | set the commands to cache |
Returns
Promise<ApplicationCommand[]>
a array of commands object