File tree Expand file tree Collapse file tree 4 files changed +4
-20
lines changed Expand file tree Collapse file tree 4 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
1
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10.ts' ;
2
2
import type { APIActionRowComponent , APIModalActionRowComponent } from '../channel.ts' ;
3
- import type { MessageFlags } from '../mod.ts' ;
4
3
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts' ;
5
4
6
5
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120
119
/**
121
120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122
121
*/
123
- export type APIInteractionResponseCallbackData = Omit <
124
- RESTPostAPIWebhookWithTokenJSONBody ,
125
- 'avatar_url' | 'username'
126
- > & { flags ?: MessageFlags } ;
122
+ export type APIInteractionResponseCallbackData = Omit < RESTPostAPIWebhookWithTokenJSONBody , 'avatar_url' | 'username' > ;
127
123
128
124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129
125
choices ?: APIApplicationCommandOptionChoice [ ] ;
Original file line number Diff line number Diff line change 1
1
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9.ts' ;
2
2
import type { APIActionRowComponent , APIModalActionRowComponent } from '../channel.ts' ;
3
- import type { MessageFlags } from '../mod.ts' ;
4
3
import type { APIApplicationCommandOptionChoice } from './applicationCommands.ts' ;
5
4
6
5
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120
119
/**
121
120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122
121
*/
123
- export type APIInteractionResponseCallbackData = Omit <
124
- RESTPostAPIWebhookWithTokenJSONBody ,
125
- 'avatar_url' | 'username'
126
- > & { flags ?: MessageFlags } ;
122
+ export type APIInteractionResponseCallbackData = Omit < RESTPostAPIWebhookWithTokenJSONBody , 'avatar_url' | 'username' > ;
127
123
128
124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129
125
choices ?: APIApplicationCommandOptionChoice [ ] ;
Original file line number Diff line number Diff line change 1
1
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v10' ;
2
2
import type { APIActionRowComponent , APIModalActionRowComponent } from '../channel' ;
3
- import type { MessageFlags } from '../index' ;
4
3
import type { APIApplicationCommandOptionChoice } from './applicationCommands' ;
5
4
6
5
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120
119
/**
121
120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122
121
*/
123
- export type APIInteractionResponseCallbackData = Omit <
124
- RESTPostAPIWebhookWithTokenJSONBody ,
125
- 'avatar_url' | 'username'
126
- > & { flags ?: MessageFlags } ;
122
+ export type APIInteractionResponseCallbackData = Omit < RESTPostAPIWebhookWithTokenJSONBody , 'avatar_url' | 'username' > ;
127
123
128
124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129
125
choices ?: APIApplicationCommandOptionChoice [ ] ;
Original file line number Diff line number Diff line change 1
1
import type { RESTPostAPIWebhookWithTokenJSONBody } from '../../../v9' ;
2
2
import type { APIActionRowComponent , APIModalActionRowComponent } from '../channel' ;
3
- import type { MessageFlags } from '../index' ;
4
3
import type { APIApplicationCommandOptionChoice } from './applicationCommands' ;
5
4
6
5
/**
@@ -120,10 +119,7 @@ export enum InteractionResponseType {
120
119
/**
121
120
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
122
121
*/
123
- export type APIInteractionResponseCallbackData = Omit <
124
- RESTPostAPIWebhookWithTokenJSONBody ,
125
- 'avatar_url' | 'username'
126
- > & { flags ?: MessageFlags } ;
122
+ export type APIInteractionResponseCallbackData = Omit < RESTPostAPIWebhookWithTokenJSONBody , 'avatar_url' | 'username' > ;
127
123
128
124
export interface APICommandAutocompleteInteractionResponseCallbackData {
129
125
choices ?: APIApplicationCommandOptionChoice [ ] ;
You can’t perform that action at this time.
0 commit comments