add: stickerItems field to Message (#1066)

This commit is contained in:
rigormorrtiss
2021-06-28 23:09:46 +04:00
committed by GitHub
parent 352c022a8e
commit a0087edecb
2 changed files with 14 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import { MessageReference } from "./message_reference.ts";
import { MessageSticker } from "./message_sticker.ts";
import { DiscordMessageTypes } from "./message_types.ts";
import { Reaction } from "./reaction.ts";
import { MessageStickerItem } from "./message_sticker_item.ts";
/** https://discord.com/developers/docs/resources/channel#message-object */
export interface Message {
@@ -93,5 +94,7 @@ export interface Message {
/** The thread that was started from this message, includes thread member object */
thread?: Omit<Channel, "member"> & { member: ThreadMember };
/** The components related to this message */
components: MessageComponents;
components?: MessageComponents;
/** Sent if the message contains stickers */
stickerItems?: MessageStickerItem[];
}

View File

@@ -0,0 +1,10 @@
import { DiscordMessageStickerFormatTypes } from "./message_sticker_format_types.ts";
export interface MessageStickerItem {
/** Id of the sticker */
id: string;
/** Name of the sticker */
name: string;
/** Type of sticker format */
formatType: DiscordMessageStickerFormatTypes;
}