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
icon: string
The icon hash of this guild Source
features
features: Array<Features>
An array of features available to this guild Source
createdTimestamp
createdTimestamp: number
The timestamp this guild was created at Source
createdAt
createdAt: Date
The time this guild was created at Source
nameAcronym
nameAcronym: string
The acronym that shows up in place of a guild icon Source
partnered
partnered: boolean
Whether this guild is partnered Source
verified
verified: boolean
Whether this guild is verified Source
client
client: Client
The client that instantiated this Source
Methods
iconURL
iconURL(options?: ImageURLOptions): string
The URL to this guild's icon. Parameters
| Name | Type | Description |
|---|---|---|
options? | ImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
fetch
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