Skip to content

GuildDiscovery

Represents a guild’s discovery metadata.

Kind: global class
Extends: Base

ParamTypeDescription
dataObjectThe data for the guild discovery metadata
guildIdSnowflakeThe ID of the guild this discovery metadata belongs to
clientClientThe instantiating client

Whether or not this guild discovery object is partial.

Kind: instance property of GuildDiscovery

The about section of the guild discovery.

Kind: instance property of GuildDiscovery

The ID of the guild.

Kind: instance property of GuildDiscovery

guildDiscovery.categoryIds : Array.<string>

Section titled “guildDiscovery.categoryIds : Array.<string>”

The category IDs of the guild discovery.

Kind: instance property of GuildDiscovery

guildDiscovery.emojiDiscoverabilityEnabled : boolean

Section titled “guildDiscovery.emojiDiscoverabilityEnabled : boolean”

Whether or not emoji discoverability is enabled.

Kind: instance property of GuildDiscovery

Whether or not the guild discovery is published.

Kind: instance property of GuildDiscovery

The keywords associated with the guild discovery.

Kind: instance property of GuildDiscovery

The date the guild was partner actioned.

Kind: instance property of GuildDiscovery

guildDiscovery.partnerActionedTimestamp : number

Section titled “guildDiscovery.partnerActionedTimestamp : number”

The timestamp of when the guild was partner actioned.

Kind: instance property of GuildDiscovery

guildDiscovery.partnerApplicationAt : Date

Section titled “guildDiscovery.partnerApplicationAt : Date”

The date the guild applied for partnership.

Kind: instance property of GuildDiscovery

guildDiscovery.partnerApplicationTimestamp : number

Section titled “guildDiscovery.partnerApplicationTimestamp : number”

The timestamp of when the guild applied for partnership.

Kind: instance property of GuildDiscovery

guildDiscovery.primaryCategoryId : GuildPrimaryCategory

Section titled “guildDiscovery.primaryCategoryId : GuildPrimaryCategory”

The primary category ID of the guild discovery.

Kind: instance property of GuildDiscovery

guildDiscovery.reasonsToJoin : Array.<string>

Section titled “guildDiscovery.reasonsToJoin : Array.<string>”

The reasons to join the guild.

Kind: instance property of GuildDiscovery

The social links associated with the guild discovery.

Kind: instance property of GuildDiscovery

Returns the guild associated with this discovery metadata.

Kind: instance property of GuildDiscovery
Returns: Guild - The guild object.

guildDiscovery.fetch() ⇒ Promise.<DiscoveryMetadata>

Section titled “guildDiscovery.fetch() ⇒ Promise.<DiscoveryMetadata>”

Fetches the discovery metadata for the guild.

Kind: instance method of GuildDiscovery
Returns: Promise.<DiscoveryMetadata> - A promise that resolves with the discovery metadata object.

guildDiscovery.edit() ⇒ Promise.<DiscoveryMetadata>

Section titled “guildDiscovery.edit() ⇒ Promise.<DiscoveryMetadata>”

Fetches the discovery metadata for the guild.

Kind: instance method of GuildDiscovery
Returns: Promise.<DiscoveryMetadata> - A promise that resolves with the discovery metadata object.

guildDiscovery.setEmojiDiscoverabilityEnabled(emojiDiscoverabilityEnabled) ⇒ Promise.<DiscoveryMetadata>

Section titled “guildDiscovery.setEmojiDiscoverabilityEnabled(emojiDiscoverabilityEnabled) ⇒ Promise.<DiscoveryMetadata>”

Sets whether the emoji discoverability is enabled for the guild.

Kind: instance method of GuildDiscovery
Returns: Promise.<DiscoveryMetadata> - A promise that resolves with the updated discovery metadata object.

ParamTypeDescription
emojiDiscoverabilityEnabledbooleanA boolean indicating whether the emoji discoverability is enabled.

guildDiscovery.setPublished(emojiDiscoverabilityEnabled) ⇒ Promise.<DiscoveryMetadata>

Section titled “guildDiscovery.setPublished(emojiDiscoverabilityEnabled) ⇒ Promise.<DiscoveryMetadata>”

Sets whether the emoji discoverability is enabled for the guild.

Kind: instance method of GuildDiscovery
Returns: Promise.<DiscoveryMetadata> - A promise that resolves with the updated discovery metadata object.

ParamTypeDescription
emojiDiscoverabilityEnabledbooleanA boolean indicating whether the emoji discoverability is enabled.

guildDiscovery.setAbout(about) ⇒ Promise.<DiscoveryMetadata>

Section titled “guildDiscovery.setAbout(about) ⇒ Promise.<DiscoveryMetadata>”

Sets the description of the guild for the discovery page.

Kind: instance method of GuildDiscovery
Returns: Promise.<DiscoveryMetadata> - A promise that resolves with the updated discovery metadata object.

ParamTypeDescription
aboutstringThe description of the guild.

guildDiscovery.setReasonsToJoin(reasonsToJoin) ⇒ Promise.<Discovery>

Section titled “guildDiscovery.setReasonsToJoin(reasonsToJoin) ⇒ Promise.<Discovery>”

Sets the “Reasons to Join” section for the associated guild in the discovery settings.

Kind: instance method of GuildDiscovery
Returns: Promise.<Discovery> - The updated discovery object.

ParamTypeDescription
reasonsToJoinstringThe new “Reasons to Join” section content.

guildDiscovery.setKeywords(keywords) ⇒ Promise.<Discovery>

Section titled “guildDiscovery.setKeywords(keywords) ⇒ Promise.<Discovery>”

Sets the keywords associated with the associated guild in the discovery settings.

Kind: instance method of GuildDiscovery
Returns: Promise.<Discovery> - The updated discovery object.

ParamTypeDescription
keywordsArray.<string>The new keywords.

guildDiscovery.setPrimaryCategoryId(keywords) ⇒ Promise.<Discovery>

Section titled “guildDiscovery.setPrimaryCategoryId(keywords) ⇒ Promise.<Discovery>”

Sets the keywords associated with the associated guild in the discovery settings.

Kind: instance method of GuildDiscovery
Returns: Promise.<Discovery> - The updated discovery object.

ParamTypeDescription
keywordsArray.<string>The new keywords.