GuildVanityManager
GuildVanityManager ⇐ Base
Represents a manager for handling guild vanity URLs.
Kind: global class
Extends: Base
- GuildVanityManager ⇐
Base
- new GuildVanityManager(guildId, client)
- .fetch([guild]) ⇒
Promise.<GuildVanity>
- .edit(code, [guild]) ⇒
Promise.<GuildVanity>
new GuildVanityManager(guildId, client)
Constructs a new instance of the class.
Param | Type | Description |
---|---|---|
guildId | string | The ID of the guild. |
client | Client | The 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.
Param | Type | Default | Description |
---|---|---|---|
[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.
Param | Type | Default | Description |
---|---|---|---|
code | string | The new code for the vanity URL. | |
[guild] | string | Guild | ”this.guildId” | The guild ID or guild object to edit the vanity URL for. |