Skip to content

GuildVanityManager

GuildVanityManager ⇐ Base

Represents a manager for handling guild vanity URLs.

Kind: global class
Extends: Base

new GuildVanityManager(guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
guildIdstringThe ID of the guild.
clientClientThe client object.

guildVanityManager.fetch([guild]) ⇒ Promise.<GuildVanity>

Fetches the vanity URL for the specified guild.

Kind: instance method of GuildVanityManager
Returns: Promise.<GuildVanity> - - A promise that resolves to a GuildVanity object containing the vanity URL information.

ParamTypeDefaultDescription
[guild]string | Guild”this.guildId”The guild ID or Guild object. Defaults to the current guild.

guildVanityManager.edit(code, [guild]) ⇒ Promise.<GuildVanity>

Edits the code for a guild’s vanity URL.

Kind: instance method of GuildVanityManager
Returns: Promise.<GuildVanity> - A promise that resolves with the updated GuildVanity object.

ParamTypeDefaultDescription
codestringThe new code for the vanity URL.
[guild]string | Guild”this.guildId”The guild ID or guild object to edit the vanity URL for.