Skip to content

Commit 1fc2a6e

Browse files
authored
refactor: remove flags override (#1193)
1 parent f90b47c commit 1fc2a6e

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

deno/payloads/v10/_interactions/responses.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10.ts';
22
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts';
3-
import type { MessageFlags } from '../mod.ts';
43
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
54

65
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120119
/**
121120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122121
*/
123-
export type APIInteractionResponseCallbackData = Omit<
124-
RESTPostAPIWebhookWithTokenJSONBody,
125-
'avatar_url' | 'username'
126-
> & { flags?: MessageFlags };
122+
export type APIInteractionResponseCallbackData = Omit<RESTPostAPIWebhookWithTokenJSONBody, 'avatar_url' | 'username'>;
127123

128124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129125
choices?: APIApplicationCommandOptionChoice[];

deno/payloads/v9/_interactions/responses.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9.ts';
22
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel.ts';
3-
import type { MessageFlags } from '../mod.ts';
43
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts';
54

65
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120119
/**
121120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122121
*/
123-
export type APIInteractionResponseCallbackData = Omit<
124-
RESTPostAPIWebhookWithTokenJSONBody,
125-
'avatar_url' | 'username'
126-
> & { flags?: MessageFlags };
122+
export type APIInteractionResponseCallbackData = Omit<RESTPostAPIWebhookWithTokenJSONBody, 'avatar_url' | 'username'>;
127123

128124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129125
choices?: APIApplicationCommandOptionChoice[];

payloads/v10/_interactions/responses.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10';
22
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel';
3-
import type { MessageFlags } from '../index';
43
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
54

65
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120119
/**
121120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122121
*/
123-
export type APIInteractionResponseCallbackData = Omit<
124-
RESTPostAPIWebhookWithTokenJSONBody,
125-
'avatar_url' | 'username'
126-
> & { flags?: MessageFlags };
122+
export type APIInteractionResponseCallbackData = Omit<RESTPostAPIWebhookWithTokenJSONBody, 'avatar_url' | 'username'>;
127123

128124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129125
choices?: APIApplicationCommandOptionChoice[];

payloads/v9/_interactions/responses.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9';
22
import type { APIActionRowComponent, APIModalActionRowComponent } from '../channel';
3-
import type { MessageFlags } from '../index';
43
import type { APIApplicationCommandOptionChoice } from './applicationCommands';
54

65
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120119
/**
121120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122121
*/
123-
export type APIInteractionResponseCallbackData = Omit<
124-
RESTPostAPIWebhookWithTokenJSONBody,
125-
'avatar_url' | 'username'
126-
> & { flags?: MessageFlags };
122+
export type APIInteractionResponseCallbackData = Omit<RESTPostAPIWebhookWithTokenJSONBody, 'avatar_url' | 'username'>;
127123

128124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129125
choices?: APIApplicationCommandOptionChoice[];

0 commit comments

Comments
 (0)