Class
PackManager
REST wrappers for `/packs/*`. Access via `client.packs`.
Constructor
new PackManager
(client: Client)| Param | Type | Description |
|---|---|---|
| client | Client |
Methods
create
(packType: PackType, body: PackCreateOptions): Promise<PackSummaryPayload>Create a pack.
| Param | Type | Description |
|---|---|---|
| packType | PackType | |
| body | PackCreateOptions |
createEmoji
(packId: string, options: ExpressionCreateOptions): Promise<PackEmojiPayload>Create an emoji in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| options | ExpressionCreateOptions |
createEmojisBulk
(packId: string, emojis: ExpressionCreateOptions[]): Promise<PackBulkCreatePayload<PackEmojiPayload>>Bulk-create emojis in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| emojis | ExpressionCreateOptions[] |
createInvite
(packId: string, options: PackInviteCreateOptions): Promise<PackInvitePayload>Create an invite for a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| options | PackInviteCreateOptions |
createSticker
(packId: string, options: StickerCreateOptions): Promise<PackStickerPayload>Create a sticker in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| options | StickerCreateOptions |
createStickersBulk
(packId: string, stickers: StickerCreateOptions[]): Promise<PackBulkCreatePayload<PackStickerPayload>>Bulk-create stickers in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| stickers | StickerCreateOptions[] |
delete
(packId: string): Promise<void>Delete a pack.
| Param | Type | Description |
|---|---|---|
| packId | string |
deleteEmoji
(packId: string, emojiId: string): Promise<void>Delete an emoji from a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| emojiId | string |
deleteSticker
(packId: string, stickerId: string): Promise<void>Delete a sticker from a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| stickerId | string |
edit
(packId: string, body: PackEditOptions): Promise<PackSummaryPayload>Edit a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| body | PackEditOptions |
editEmoji
(packId: string, emojiId: string, options: ExpressionEditOptions): Promise<PackEmojiPayload>Edit an emoji in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| emojiId | string | |
| options | ExpressionEditOptions |
editSticker
(packId: string, stickerId: string, options: StickerEditOptions): Promise<PackStickerPayload>Edit a sticker in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string | |
| stickerId | string | |
| options | StickerEditOptions |
fetchDashboard
(): Promise<PackDashboardPayload>Fetch the current user's pack dashboard (camelCase summaries).
install
(packId: string): Promise<void>Install a pack for the current user.
| Param | Type | Description |
|---|---|---|
| packId | string |
listEmojis
(packId: string): Promise<PackEmojiPayload[]>List emojis in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string |
listInvites
(packId: string): Promise<PackInvitePayload[]>List invites for a pack.
| Param | Type | Description |
|---|---|---|
| packId | string |
listStickers
(packId: string): Promise<PackStickerPayload[]>List stickers in a pack.
| Param | Type | Description |
|---|---|---|
| packId | string |
uninstall
(packId: string): Promise<void>Uninstall a pack for the current user.
| Param | Type | Description |
|---|---|---|
| packId | string |