Class

PackManager

REST wrappers for `/packs/*`. Access via `client.packs`.

Constructor

new PackManager(client: Client)
ParamTypeDescription
clientClient

Methods

create(packType: PackType, body: PackCreateOptions): Promise<PackSummaryPayload>

Create a pack.

ParamTypeDescription
packTypePackType
bodyPackCreateOptions
createEmoji(packId: string, options: ExpressionCreateOptions): Promise<PackEmojiPayload>

Create an emoji in a pack.

ParamTypeDescription
packIdstring
optionsExpressionCreateOptions
createEmojisBulk(packId: string, emojis: ExpressionCreateOptions[]): Promise<PackBulkCreatePayload<PackEmojiPayload>>

Bulk-create emojis in a pack.

ParamTypeDescription
packIdstring
emojisExpressionCreateOptions[]
createInvite(packId: string, options: PackInviteCreateOptions): Promise<PackInvitePayload>

Create an invite for a pack.

ParamTypeDescription
packIdstring
optionsPackInviteCreateOptions
createSticker(packId: string, options: StickerCreateOptions): Promise<PackStickerPayload>

Create a sticker in a pack.

ParamTypeDescription
packIdstring
optionsStickerCreateOptions
createStickersBulk(packId: string, stickers: StickerCreateOptions[]): Promise<PackBulkCreatePayload<PackStickerPayload>>

Bulk-create stickers in a pack.

ParamTypeDescription
packIdstring
stickersStickerCreateOptions[]
delete(packId: string): Promise<void>

Delete a pack.

ParamTypeDescription
packIdstring
deleteEmoji(packId: string, emojiId: string): Promise<void>

Delete an emoji from a pack.

ParamTypeDescription
packIdstring
emojiIdstring
deleteSticker(packId: string, stickerId: string): Promise<void>

Delete a sticker from a pack.

ParamTypeDescription
packIdstring
stickerIdstring
edit(packId: string, body: PackEditOptions): Promise<PackSummaryPayload>

Edit a pack.

ParamTypeDescription
packIdstring
bodyPackEditOptions
editEmoji(packId: string, emojiId: string, options: ExpressionEditOptions): Promise<PackEmojiPayload>

Edit an emoji in a pack.

ParamTypeDescription
packIdstring
emojiIdstring
optionsExpressionEditOptions
editSticker(packId: string, stickerId: string, options: StickerEditOptions): Promise<PackStickerPayload>

Edit a sticker in a pack.

ParamTypeDescription
packIdstring
stickerIdstring
optionsStickerEditOptions
fetchDashboard(): Promise<PackDashboardPayload>

Fetch the current user's pack dashboard (camelCase summaries).

install(packId: string): Promise<void>

Install a pack for the current user.

ParamTypeDescription
packIdstring
listEmojis(packId: string): Promise<PackEmojiPayload[]>

List emojis in a pack.

ParamTypeDescription
packIdstring
listInvites(packId: string): Promise<PackInvitePayload[]>

List invites for a pack.

ParamTypeDescription
packIdstring
listStickers(packId: string): Promise<PackStickerPayload[]>

List stickers in a pack.

ParamTypeDescription
packIdstring
uninstall(packId: string): Promise<void>

Uninstall a pack for the current user.

ParamTypeDescription
packIdstring