Class

PackManager

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

Constructor

new PackManager(client: Client)
client
Client

Methods

.create(packType, body)

packType: PackType, body: PackCreateOptions → Promise<PackSummaryPayload>

Create a pack.

await client.packs.create(packType, body);

.createInvite(packId, options)

packId: string, options: PackInviteCreateOptions → Promise<PackInvitePayload>

Create an invite for a pack.

await client.packs.createInvite(packId, options);

.delete(packId)

packId: string → Promise<void>

Delete a pack.

await client.packs.delete(packId);

.deleteEmoji(packId, emojiId)

packId: string, emojiId: string → Promise<void>

Delete an emoji from a pack.

await client.packs.deleteEmoji(packId, emojiId);

.deleteSticker(packId, stickerId)

packId: string, stickerId: string → Promise<void>

Delete a sticker from a pack.

await client.packs.deleteSticker(packId, stickerId);

.edit(packId, body)

packId: string, body: PackEditOptions → Promise<PackSummaryPayload>

Edit a pack.

await client.packs.edit(packId, body);

.fetchDashboard()

→ Promise<PackDashboardPayload>

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

await client.packs.fetchDashboard();

.install(packId)

packId: string → Promise<void>

Install a pack for the current user.

await client.packs.install(packId);

.listEmojis(packId)

packId: string → Promise<PackEmojiPayload[]>

List emojis in a pack.

await client.packs.listEmojis(packId);

.listInvites(packId)

packId: string → Promise<PackInvitePayload[]>

List invites for a pack.

await client.packs.listInvites(packId);

.listStickers(packId)

packId: string → Promise<PackStickerPayload[]>

List stickers in a pack.

await client.packs.listStickers(packId);

.uninstall(packId)

packId: string → Promise<void>

Uninstall a pack for the current user.

await client.packs.uninstall(packId);