mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
add: stickerItems field to Message (#1066)
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
10
src/types/messages/message_sticker_item.ts
Normal file
10
src/types/messages/message_sticker_item.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user