Skip to content

Class Guild

🏭 Constructors

constructor

ts
new Guild(client: Client, props: Record<string, any>): Guild

Parameters

  • client: Client
  • props: Record<string, any>

Return Type

  • Guild

Defined in: packages/discord-rpc/structures/Guild.ts:26

🏷️ Properties

client

ts
client: Client

the client instance Inherited from: Base.client

Defined in: packages/discord-rpc/structures/Base.ts:7

icon_url

ts
icon_url: null | string

Defined in: packages/discord-rpc/structures/Guild.ts:14

id

ts
id: string

guild id

Defined in: packages/discord-rpc/structures/Guild.ts:9

members

ts
members: User[] = []

guild member list (always an empty array)

Defined in: packages/discord-rpc/structures/Guild.ts:20

name

ts
name: string

guild name (2-100 characters, excluding trailing and leading whitespace)

Defined in: packages/discord-rpc/structures/Guild.ts:13

vanity_url_code

ts
vanity_url_code: null | string

the vanity url code for the guild

Defined in: packages/discord-rpc/structures/Guild.ts:24