Abstract

BaseGuild

export abstract class BaseGuild extends Base
export abstract class BaseGuild extends Base
The base class for Guild, OAuth2Guild and InviteGuild.

Extends

Base
constructor(client, data)
Constructs a new instance of the BaseGuild class
NameTypeOptionalDescription
clientClient<true>NoNone
dataRawBaseGuildDataNoNone
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
Readonly
createdAt:Date
The time this guild was created at
Readonly
createdTimestamp:number
The timestamp this guild was created at
features:`${GuildFeature}`[]
An array of features available to this guild
icon:string | null
The icon hash of this guild
The guild's id
name:string
The name of this guild
Readonly
nameAcronym:string
The acronym that shows up in place of a guild icon
Readonly
partnered:boolean
Whether this guild is partnered
Readonly
verified:boolean
Whether this guild is verified
fetch():Promise<Guild>
Fetches this guild.
iconURL(options?):string | null
The URL to this guild's icon.
Returns
NameTypeOptionalDescription
optionsImageURLOptionsYesOptions for the image URL
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
toString():string
When concatenated with a string, this automatically returns the guild's name instead of the Guild object.
valueOf():string