Sticker
Get Sticker
GetAPISticker
Returns a sticker object for the given sticker ID.
import { getSticker } from "dressed";
const sticker = await getSticker(stickerId);List Sticker Packs
GetStickerPacks
Returns a list of available sticker packs.
import { listStickerPacks } from "dressed";
const stickerPacks = await listStickerPacks();Get Sticker Pack
GetAPIStickerPack
Returns a sticker pack object for the given sticker pack ID.
import { getStickerPack } from "dressed";
const stickerPack = await getStickerPack(packId);List Stickers
GetAPIGuildStickers
Returns an array of sticker objects for the given guild.
import { listStickers } from "dressed";
const stickers = await listStickers(guildId);Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
Get Guild Sticker
GetAPIGuildSticker
Returns a sticker object for the given guild and sticker IDs.
import { getGuildSticker } from "dressed";
const guildSticker = await getGuildSticker(guildId, stickerId);Includes the user field if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
Create Sticker
PostAPIGuildSticker
Create a new sticker for the guild.
import { createSticker } from "dressed";
await createSticker(guildId, data);Requires the CREATE_GUILD_EXPRESSIONS permission.
- Lottie stickers can only be uploaded on guilds that have either the
VERIFIEDand/or thePARTNEREDguild feature. - Uploaded stickers are constrained to 5 seconds in length for animated stickers, and 320 x 320 pixels.
Modify Sticker
PatchAPIGuildSticker
Modify the given sticker.
import { modifySticker } from "dressed";
await modifySticker(guildId, stickerId, data);- For stickers created by the current user, requires either the
CREATE_GUILD_EXPRESSIONSorMANAGE_GUILD_EXPRESSIONSpermission. - For other stickers, requires the
MANAGE_GUILD_EXPRESSIONSpermission.
Delete Sticker
DeleteAPIGuildSticker
Delete the given sticker.
import { deleteSticker } from "dressed";
await deleteSticker(guildId, stickerId);- For stickers created by the current user, requires either the
CREATE_GUILD_EXPRESSIONSorMANAGE_GUILD_EXPRESSIONSpermission. - For other stickers, requires the
MANAGE_GUILD_EXPRESSIONSpermission.