Skip to content

GuildPreview

Represent Discord Guild Preview Object

https://discord.com/developers/docs/resources/guild#guild-preview-object

Extends

Constructors

new GuildPreview(client, data)

1
new GuildPreview(client: UsingClient, data: APIGuildPreview): GuildPreview

Parameters

ParameterType
clientUsingClient
dataAPIGuildPreview

Returns

GuildPreview

Overrides

AnonymousGuild.constructor

Source

seyfert/src/structures/GuildPreview.ts:10

Properties

PropertyModifierTypeInherited from
bannerpublicundefined | null | stringAnonymousGuild.banner
clientreadonlyUsingClientAnonymousGuild.client
descriptionpublicundefined | null | stringAnonymousGuild.description
featurespublicundefined | GuildFeature[]AnonymousGuild.features
iconpublicnull | stringAnonymousGuild.icon
idpublicstringAnonymousGuild.id
namepublicstringAnonymousGuild.name
splashpublicnull | stringAnonymousGuild.splash
vanityUrlCodepublicundefined | null | stringAnonymousGuild.vanityUrlCode
verificationLevelpublicundefined | GuildVerificationLevelAnonymousGuild.verificationLevel
welcomeScreenpublicundefined | ObjectAnonymousGuild.welcomeScreen

Accessors

createdAt

1
get createdAt(): Date

createdAt gets the creation Date instace of the current object.

Returns

Date

Source

seyfert/src/structures/extra/DiscordBase.ts:27


createdTimestamp

1
get createdTimestamp(): number

Create a timestamp for the current object.

Returns

number

Source

seyfert/src/structures/extra/DiscordBase.ts:20


partnered

1
get partnered(): boolean

Returns

boolean

Source

seyfert/src/structures/extra/BaseGuild.ts:11


verified

1
get verified(): boolean

If the guild is verified.

https://discord.com/developers/docs/resources/guild#guild-object-guild-features

Returns

boolean

Source

seyfert/src/structures/extra/BaseGuild.ts:22

Methods

bannerURL()

1
bannerURL(options?: CDNUrlOptions): undefined | string

bannerURL gets the current guild banner as a string.

Parameters

ParameterTypeDescription
options?CDNUrlOptionsImage options for the banner url.

Returns

undefined | string

Banner url or void

Inherited from

AnonymousGuild.bannerURL

https://discord.com/developers/docs/reference#image-formatting

Source

seyfert/src/structures/extra/BaseGuild.ts:67


fetch()

1
fetch(): Promise<BaseGuild>

Fetch guild on API

Returns

Promise<BaseGuild>

Inherited from

AnonymousGuild.fetch

Source

seyfert/src/structures/extra/BaseGuild.ts:32


iconURL()

1
iconURL(options?: CDNUrlOptions): undefined | string

iconURL gets the current guild icon.

Parameters

ParameterType
options?CDNUrlOptions

Returns

undefined | string

Inherited from

AnonymousGuild.iconURL

https://discord.com/developers/docs/reference#image-formatting

Source

seyfert/src/structures/extra/BaseGuild.ts:41


splashURL()

1
splashURL(options?: CDNUrlOptions): undefined | string

splashURL gets the current guild splash as a string.

Parameters

ParameterTypeDescription
options?CDNUrlOptionsImage options for the splash url.

Returns

undefined | string

Splash url or void.

Inherited from

AnonymousGuild.splashURL

https://discord.com/developers/docs/reference#image-formatting

Source

seyfert/src/structures/extra/BaseGuild.ts:54


toString()

1
toString(): string

Returns

string

Inherited from

AnonymousGuild.toString

Source

seyfert/src/structures/extra/BaseGuild.ts:74