GuildPreview
classe · Source
Represents the data about the guild any bot can preview, connected to the specified guild.
Extends: Base
Properties
id
The id of this guild Source
name
The name of this guild Source
icon
The icon of this guild Source
splash
The splash icon of this guild Source
discoverySplash
The discovery splash icon of this guild Source
features
An array of enabled guild features Source
approximateMemberCount
The approximate count of members in this guild Source
approximatePresenceCount
The approximate count of online members in this guild Source
description
The description for this guild Source
emojis
Collection of emojis belonging to this guild Source
stickers
Collection of stickers belonging to this guild Source
createdTimestamp
The timestamp this guild was created at Source
createdAt
The time this guild was created at Source
client
The client that instantiated this Source
Methods
splashURL
The URL to this guild's splash. Parameters
| Name | Type | Description |
|---|---|---|
options? | StaticImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
discoverySplashURL
The URL to this guild's discovery splash. Parameters
| Name | Type | Description |
|---|---|---|
options? | StaticImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
iconURL
The URL to this guild's icon. Parameters
| Name | Type | Description |
|---|---|---|
options? | ImageURLOptions | Options for the Image URL Default: {}. |
Returns: stringSource
fetch
Fetches this guild. Returns: Promise<GuildPreview>Source
toString
When concatenated with a string, this automatically returns the guild's name instead of the Guild object. Returns: string
// Logs: Hello from My Guild!
console.log(`Hello from ${previewGuild}!`);