Skip to content

AnonymousGuild

classe · Source

Bundles common attributes and methods between Guild and InviteGuild

Extends: BaseGuild

Properties

splash

nullable

splash: string

The hash of the guild invite splash image Source

nullable

banner: string

The hash of the guild banner Source

description

nullable

description: string

The description of the guild, if any Source

verificationLevel

verificationLevel: VerificationLevel

The verification level of the guild Source

vanityURLCode

nullable

vanityURLCode: string

The vanity invite code of the guild, if any Source

nsfwLevel

nsfwLevel: NSFWLevel

The NSFW level of this guild Source

premiumSubscriptionCount

nullable

premiumSubscriptionCount: number

The total number of boosts for this server Source

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

bannerURL

bannerURL(options?: StaticImageURLOptions): string

The URL to this guild's banner. Parameters

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

Returns: stringSource

splashURL

splashURL(options?: StaticImageURLOptions): string

The URL to this guild's invite splash image. Parameters

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

Returns: stringSource

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.