From 1fc2a6ece8ad4dad9a0f28e45098e02c52b4129e Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:27:55 +0000 Subject: [PATCH] refactor: remove flags override (#1193) --- deno/payloads/v10/_interactions/responses.ts | 6 +----- deno/payloads/v9/_interactions/responses.ts | 6 +----- payloads/v10/_interactions/responses.ts | 6 +----- payloads/v9/_interactions/responses.ts | 6 +----- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/deno/payloads/v10/_interactions/responses.ts b/deno/payloads/v10/_interactions/responses.ts index d9c610cc..344f5035 100644 --- a/deno/payloads/v10/_interactions/responses.ts +++ b/deno/payloads/v10/_interactions/responses.ts @@ -1,6 +1,5 @@ import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10.ts'; import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts'; -import type { MessageFlags } from '../mod.ts'; import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts'; /** @@ -120,10 +119,7 @@ export enum InteractionResponseType { /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */ -export type APIInteractionResponseCallbackData = Omit< - RESTPostAPIWebhookWithTokenJSONBody, - 'avatar_url' | 'username' -> & { flags?: MessageFlags }; +export type APIInteractionResponseCallbackData = Omit; export interface APICommandAutocompleteInteractionResponseCallbackData { choices?: APIApplicationCommandOptionChoice[]; diff --git a/deno/payloads/v9/_interactions/responses.ts b/deno/payloads/v9/_interactions/responses.ts index 174dcc72..4ef60b21 100644 --- a/deno/payloads/v9/_interactions/responses.ts +++ b/deno/payloads/v9/_interactions/responses.ts @@ -1,6 +1,5 @@ import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9.ts'; import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts'; -import type { MessageFlags } from '../mod.ts'; import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts'; /** @@ -120,10 +119,7 @@ export enum InteractionResponseType { /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */ -export type APIInteractionResponseCallbackData = Omit< - RESTPostAPIWebhookWithTokenJSONBody, - 'avatar_url' | 'username' -> & { flags?: MessageFlags }; +export type APIInteractionResponseCallbackData = Omit; export interface APICommandAutocompleteInteractionResponseCallbackData { choices?: APIApplicationCommandOptionChoice[]; diff --git a/payloads/v10/_interactions/responses.ts b/payloads/v10/_interactions/responses.ts index 42d277e7..9eaa8b0f 100644 --- a/payloads/v10/_interactions/responses.ts +++ b/payloads/v10/_interactions/responses.ts @@ -1,6 +1,5 @@ import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10'; import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel'; -import type { MessageFlags } from '../index'; import type { APIApplicationCommandOptionChoice } from './applicationCommands'; /** @@ -120,10 +119,7 @@ export enum InteractionResponseType { /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */ -export type APIInteractionResponseCallbackData = Omit< - RESTPostAPIWebhookWithTokenJSONBody, - 'avatar_url' | 'username' -> & { flags?: MessageFlags }; +export type APIInteractionResponseCallbackData = Omit; export interface APICommandAutocompleteInteractionResponseCallbackData { choices?: APIApplicationCommandOptionChoice[]; diff --git a/payloads/v9/_interactions/responses.ts b/payloads/v9/_interactions/responses.ts index a78ae723..12dcf5c1 100644 --- a/payloads/v9/_interactions/responses.ts +++ b/payloads/v9/_interactions/responses.ts @@ -1,6 +1,5 @@ import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9'; import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel'; -import type { MessageFlags } from '../index'; import type { APIApplicationCommandOptionChoice } from './applicationCommands'; /** @@ -120,10 +119,7 @@ export enum InteractionResponseType { /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure */ -export type APIInteractionResponseCallbackData = Omit< - RESTPostAPIWebhookWithTokenJSONBody, - 'avatar_url' | 'username' -> & { flags?: MessageFlags }; +export type APIInteractionResponseCallbackData = Omit; export interface APICommandAutocompleteInteractionResponseCallbackData { choices?: APIApplicationCommandOptionChoice[];