Skip to main content

Class: Guild

Hierarchy

Constructors

constructor

new Guild(client, data)

Parameters

NameType
clientClient
dataGatewayGuildCreateDispatchData

Overrides

Base.constructor

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

Base.client

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

NameTypeDefault valueDescription
cache?booleantrueset the commands to cache

Returns

Promise<ApplicationCommand[]>

a array of commands object

Defined in

packages/libcord/src/structures/Guild.ts:73