diff --git a/deno/rest/v10/interactions.ts b/deno/rest/v10/interactions.ts index a4567571..95938a44 100644 --- a/deno/rest/v10/interactions.ts +++ b/deno/rest/v10/interactions.ts @@ -101,7 +101,9 @@ export type RESTGetAPIApplicationGuildCommandResult = Omit; +export type RESTPostAPIApplicationGuildCommandsJSONBody = + | Omit + | Omit; /** * https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command @@ -112,26 +114,27 @@ export type RESTPostAPIApplicationGuildCommandsResult = Omit + | Omit + | Omit >; /** * https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */ -export type RESTPatchAPIApplicationGuildCommandResult = APIApplicationCommand; +export type RESTPatchAPIApplicationGuildCommandResult = Omit; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsJSONBody = Omit< - RESTPostAPIApplicationCommandsJSONBody, - 'dm_permission' ->[]; +export type RESTPutAPIApplicationGuildCommandsJSONBody = ( + | Omit + | Omit +)[]; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsResult = APIApplicationCommand[]; +export type RESTPutAPIApplicationGuildCommandsResult = Omit[]; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response diff --git a/deno/rest/v9/interactions.ts b/deno/rest/v9/interactions.ts index f8916d4a..50a6c6de 100644 --- a/deno/rest/v9/interactions.ts +++ b/deno/rest/v9/interactions.ts @@ -101,7 +101,9 @@ export type RESTGetAPIApplicationGuildCommandResult = Omit; +export type RESTPostAPIApplicationGuildCommandsJSONBody = + | Omit + | Omit; /** * https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command @@ -112,23 +114,27 @@ export type RESTPostAPIApplicationGuildCommandsResult = Omit + | Omit + | Omit >; /** * https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */ -export type RESTPatchAPIApplicationGuildCommandResult = APIApplicationCommand; +export type RESTPatchAPIApplicationGuildCommandResult = Omit; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsJSONBody = RESTPostAPIApplicationCommandsJSONBody[]; +export type RESTPutAPIApplicationGuildCommandsJSONBody = ( + | Omit + | Omit +)[]; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsResult = APIApplicationCommand[]; +export type RESTPutAPIApplicationGuildCommandsResult = Omit[]; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response diff --git a/rest/v10/interactions.ts b/rest/v10/interactions.ts index bf57f4cc..2ac31ffa 100644 --- a/rest/v10/interactions.ts +++ b/rest/v10/interactions.ts @@ -101,7 +101,9 @@ export type RESTGetAPIApplicationGuildCommandResult = Omit; +export type RESTPostAPIApplicationGuildCommandsJSONBody = + | Omit + | Omit; /** * https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command @@ -112,26 +114,27 @@ export type RESTPostAPIApplicationGuildCommandsResult = Omit + | Omit + | Omit >; /** * https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */ -export type RESTPatchAPIApplicationGuildCommandResult = APIApplicationCommand; +export type RESTPatchAPIApplicationGuildCommandResult = Omit; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsJSONBody = Omit< - RESTPostAPIApplicationCommandsJSONBody, - 'dm_permission' ->[]; +export type RESTPutAPIApplicationGuildCommandsJSONBody = ( + | Omit + | Omit +)[]; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsResult = APIApplicationCommand[]; +export type RESTPutAPIApplicationGuildCommandsResult = Omit[]; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response diff --git a/rest/v9/interactions.ts b/rest/v9/interactions.ts index 124a4fe3..64884d9c 100644 --- a/rest/v9/interactions.ts +++ b/rest/v9/interactions.ts @@ -101,7 +101,9 @@ export type RESTGetAPIApplicationGuildCommandResult = Omit; +export type RESTPostAPIApplicationGuildCommandsJSONBody = + | Omit + | Omit; /** * https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command @@ -112,23 +114,27 @@ export type RESTPostAPIApplicationGuildCommandsResult = Omit + | Omit + | Omit >; /** * https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */ -export type RESTPatchAPIApplicationGuildCommandResult = APIApplicationCommand; +export type RESTPatchAPIApplicationGuildCommandResult = Omit; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsJSONBody = RESTPostAPIApplicationCommandsJSONBody[]; +export type RESTPutAPIApplicationGuildCommandsJSONBody = ( + | Omit + | Omit +)[]; /** * https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */ -export type RESTPutAPIApplicationGuildCommandsResult = APIApplicationCommand[]; +export type RESTPutAPIApplicationGuildCommandsResult = Omit[]; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response