diff --git a/v8/payloads/channel.ts b/v8/payloads/channel.ts index 2abe9e39..90d80502 100644 --- a/v8/payloads/channel.ts +++ b/v8/payloads/channel.ts @@ -130,7 +130,7 @@ export interface APIMessageApplication { */ export interface APIMessageReference { message_id?: string; - channel_id: string; + channel_id?: string; guild_id?: string; } diff --git a/v8/rest/channel.ts b/v8/rest/channel.ts index 4a06acfd..949afb3c 100644 --- a/v8/rest/channel.ts +++ b/v8/rest/channel.ts @@ -31,6 +31,7 @@ export interface APIAllowedMentionsSend { parse?: AllowedMentionsTypes[]; roles?: string[]; users?: string[]; + replied_user?: boolean; } // #endregion TypeDefs @@ -66,6 +67,8 @@ export interface RESTGetAPIChannelMessagesQuery { export type RESTGetAPIChannelMessagesResult = APIMessage[]; +export type APIMessageReferenceSend = APIMessageReference & Required>; + /** * https://discord.com/developers/docs/resources/channel#create-message */ @@ -75,7 +78,7 @@ export interface RESTPostAPIChannelMessageJSONBody { tts?: boolean; embed?: APIEmbed; allowed_mentions?: APIAllowedMentionsSend; - message_reference?: Required> & Pick; + message_reference?: APIMessageReferenceSend; } /** @@ -98,7 +101,7 @@ export type RESTPostAPIChannelMessageFormDataBody = tts?: boolean; embed?: APIEmbed; allowed_mentions?: APIAllowedMentionsSend; - message_reference?: APIMessageReference; + message_reference?: APIMessageReferenceSend; /** * The file contents */