From 4194bd9054a7e4b004f9244706f423292a8a0e56 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Wed, 19 Jan 2022 17:37:02 -0500 Subject: [PATCH] feat(RESTAPIPostChannelMessage, RESTAPIPostWebhookMessage): add flags for creation (#300) --- deno/rest/v8/channel.ts | 4 ++++ deno/rest/v8/webhook.ts | 5 +++++ deno/rest/v9/channel.ts | 4 ++++ deno/rest/v9/webhook.ts | 5 +++++ rest/v8/channel.ts | 4 ++++ rest/v8/webhook.ts | 5 +++++ rest/v9/channel.ts | 4 ++++ rest/v9/webhook.ts | 5 +++++ 8 files changed, 36 insertions(+) diff --git a/deno/rest/v8/channel.ts b/deno/rest/v8/channel.ts index 7e8f05ad4..43bd9c2ea 100644 --- a/deno/rest/v8/channel.ts +++ b/deno/rest/v8/channel.ts @@ -221,6 +221,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/deno/rest/v8/webhook.ts b/deno/rest/v8/webhook.ts index 2df4ff4eb..343c1a3bd 100644 --- a/deno/rest/v8/webhook.ts +++ b/deno/rest/v8/webhook.ts @@ -6,6 +6,7 @@ import type { APIMessage, APIWebhook, APIAttachment, + MessageFlags, } from '../../payloads/v8/mod.ts'; import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals.ts'; @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index e1e6a42ed..a895eb411 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -254,6 +254,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/deno/rest/v9/webhook.ts b/deno/rest/v9/webhook.ts index 8cbf0624c..9b4e53de7 100644 --- a/deno/rest/v9/webhook.ts +++ b/deno/rest/v9/webhook.ts @@ -6,6 +6,7 @@ import type { APIMessage, APIWebhook, APIAttachment, + MessageFlags, } from '../../payloads/v9/mod.ts'; import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals.ts'; @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/rest/v8/channel.ts b/rest/v8/channel.ts index 6c48e8ce5..458472ca6 100644 --- a/rest/v8/channel.ts +++ b/rest/v8/channel.ts @@ -221,6 +221,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/rest/v8/webhook.ts b/rest/v8/webhook.ts index a483a8cb9..5b1336d97 100644 --- a/rest/v8/webhook.ts +++ b/rest/v8/webhook.ts @@ -6,6 +6,7 @@ import type { APIMessage, APIWebhook, APIAttachment, + MessageFlags, } from '../../payloads/v8/index'; import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals'; @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index f9d7a2f10..71a42feab 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -254,6 +254,10 @@ export type RESTPostAPIChannelMessageJSONBody = AddUndefinedToPossiblyUndefinedP * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /** diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index f22664f64..e413559a4 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -6,6 +6,7 @@ import type { APIMessage, APIWebhook, APIAttachment, + MessageFlags, } from '../../payloads/v9/index'; import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, Nullable } from '../../utils/internals'; @@ -139,6 +140,10 @@ export type RESTPostAPIWebhookWithTokenJSONBody = AddUndefinedToPossiblyUndefine * Attachment objects with filename and description */ attachments?: (Pick & Partial>)[]; + /** + * Message flags combined as a bitfield + */ + flags?: MessageFlags; }>; /**