Skip to content

BaseGuild

classe · Source

The base class for Guild, OAuth2Guild and InviteGuild.

Extends: Base

Properties

id

id: Snowflake

The guild's id Source

name

name: string

The name of this guild Source

icon

nullable

icon: string

The icon hash of this guild Source

features

features: Array<Features>

An array of features available to this guild Source

createdTimestamp

readonly

createdTimestamp: number

The timestamp this guild was created at Source

createdAt

readonly

createdAt: Date

The time this guild was created at Source

nameAcronym

readonly

nameAcronym: string

The acronym that shows up in place of a guild icon Source

partnered

readonly

partnered: boolean

Whether this guild is partnered Source

verified

readonly

verified: boolean

Whether this guild is verified Source

client

readonly

client: Client

The client that instantiated this Source

Methods

iconURL

iconURL(options?: ImageURLOptions): string

The URL to this guild's icon. Parameters

NameTypeDescription
options?ImageURLOptionsOptions for the Image URL Default: {}.

Returns: stringSource

fetch

async

async fetch(): Promise<Guild>

Fetches this guild. Returns: Promise<Guild>Source

toString

toString(): string

When concatenated with a string, this automatically returns the guild's name instead of the Guild object. Returns: stringSource

Unofficial software. Not affiliated with or supported by Discord.