class GuildPreview
extends
Baseexport class GuildPreview extends Base
Represents the data about the guild any bot can preview, connected to the specified guild.
number approximateMemberCount :
The approximate count of members in this guild
number approximatePresenceCount :
The approximate count of online members in this guild
readonlyDate createdAt :
The time this guild was created at
readonlynumber createdTimestamp :
The timestamp this guild was created at
Collection<Snowflake, GuildPreviewEmoji> emojis :
Collection of emojis belonging to this guild
`${GuildFeature}`[] features :
An array of enabled guild features
Snowflake id :
The id of this guild
string name :
The name of this guild
Collection<Snowflake, Sticker> stickers :
Collection of stickers belonging to this guild
discoverySplashURLoptions?: ImageURLOptions) : string | null (
options?: ImageURLOptions
The URL to this guild's discovery splash.
fetchPromise<GuildPreview> () :
Fetches this guild.
iconURLoptions?: ImageURLOptions) : string | null (
options?: ImageURLOptions
The URL to this guild's icon.
splashURLoptions?: ImageURLOptions) : string | null (
options?: ImageURLOptions
The URL to this guild's splash.
toJSONunknown () :
toStringstring () :
When concatenated with a string, this automatically returns the guild's name instead of the Guild object.
Examples:
// Logs: Hello from My Guild!
console.log(`Hello from ${previewGuild}!`);