mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
docs: general cleanup and improvements (#6299)
Co-authored-by: DaStormer <40336269+DaStormer@users.noreply.github.com> Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -31,14 +31,19 @@ class GuildStickerManager extends CachedManager {
|
||||
return super._add(data, cache, { extras: [this.guild] });
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for creating a guild sticker.
|
||||
* @typedef {Object} GuildStickerCreateOptions
|
||||
* @param {?string} [description] The description for the sticker
|
||||
* @param {string} [reason] Reason for creating the sticker
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creates a new custom sticker in the guild.
|
||||
* @param {BufferResolvable|Stream|FileOptions|MessageAttachment} file The file for the sticker
|
||||
* @param {string} name The name for the sticker
|
||||
* @param {string} tags The Discord name of a unicode emoji representing the sticker's expression
|
||||
* @param {Object} [options] Options
|
||||
* @param {?string} [options.description] The description for the sticker
|
||||
* @param {string} [options.reason] Reason for creating the sticker
|
||||
* @param {GuildStickerCreateOptions} [options] Options
|
||||
* @returns {Promise<Sticker>} The created sticker
|
||||
* @example
|
||||
* // Create a new sticker from a url
|
||||
|
||||
Reference in New Issue
Block a user