summary refs log tree commit diff
path: root/src/schemas/api/messages/Components.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-18 15:01:59 +0100
committerRory& <root@rory.gay>2026-02-20 03:20:33 +0100
commit89c00aac7c8402ccb09ba2794360124f01c8b41f (patch)
tree084348997d6c695d5a98138d998c0fe806e4ffc0 /src/schemas/api/messages/Components.ts
parentThe ChainingOperator didn't work as expected. This fixes that. (diff)
downloadserver-ts-89c00aac7c8402ccb09ba2794360124f01c8b41f.tar.xz
Update message component type to match upstream
Diffstat (limited to 'src/schemas/api/messages/Components.ts')
-rw-r--r--src/schemas/api/messages/Components.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/schemas/api/messages/Components.ts b/src/schemas/api/messages/Components.ts

index 843a15c6..23d08957 100644 --- a/src/schemas/api/messages/Components.ts +++ b/src/schemas/api/messages/Components.ts
@@ -99,7 +99,6 @@ export enum TextInputStyle { } export enum MessageComponentType { - Script = 0, // self command script ActionRow = 1, Button = 2, StringSelect = 3, @@ -108,4 +107,19 @@ export enum MessageComponentType { RoleSelect = 6, MentionableSelect = 7, ChannelSelect = 8, + Section = 9, + TextDisplay = 10, + Thumbnail = 11, + MediaGallery = 12, + File = 13, + Separator = 14, + // 15 is unknown? + ContentInventoryEntry = 16, // activity feed entry + Container = 17, + Label = 18, + FileUpload = 19, + CheckpointCard = 20, // year in review 2026 + RadioGroup = 21, + CheckboxGroup = 22, + Checkbox = 23, }