Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add some missing REST types #612

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions deno/rest/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,11 @@ export type RESTPatchAPIGuildVoiceStateUserJSONBody = AddUndefinedToPossiblyUnde
suppress?: boolean;
}>;

/**
* https://discord.com/developers/docs/resources/guild#modify-user-voice-state
*/
export type RESTPatchAPIGuildVoiceStateUserResult = never;

/**
* https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
*/
Expand Down
18 changes: 18 additions & 0 deletions deno/rest/v10/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ import type {
} from '../../payloads/v10/mod.ts';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, StrictPartial } from '../../utils/internals.ts';

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
export interface RESTGetAPIApplicationCommandsQuery {
/**
* Whether to include full localization dictionaries (name_localizations and description_localizations)
* in the returned objects, instead of the name_localized and description_localized fields.
*
* @default false
*/
with_localizations?: boolean;
}

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
Expand Down Expand Up @@ -90,6 +103,11 @@ export type RESTPutAPIApplicationCommandsJSONBody = RESTPostAPIApplicationComman
*/
export type RESTPutAPIApplicationCommandsResult = APIApplicationCommand[];

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
export type RESTGetAPIApplicationGuildCommandsQuery = RESTGetAPIApplicationCommandsQuery;

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
Expand Down
5 changes: 5 additions & 0 deletions deno/rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,11 @@ export type RESTPatchAPIGuildVoiceStateUserJSONBody = AddUndefinedToPossiblyUnde
suppress?: boolean;
}>;

/**
* https://discord.com/developers/docs/resources/guild#modify-user-voice-state
*/
export type RESTPatchAPIGuildVoiceStateUserResult = never;

/**
* https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
*/
Expand Down
18 changes: 18 additions & 0 deletions deno/rest/v9/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ import type {
} from '../../payloads/v9/mod.ts';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, StrictPartial } from '../../utils/internals.ts';

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
export interface RESTGetAPIApplicationCommandsQuery {
/**
* Whether to include full localization dictionaries (name_localizations and description_localizations)
* in the returned objects, instead of the name_localized and description_localized fields.
*
* @default false
*/
with_localizations?: boolean;
}

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
Expand Down Expand Up @@ -90,6 +103,11 @@ export type RESTPutAPIApplicationCommandsJSONBody = RESTPostAPIApplicationComman
*/
export type RESTPutAPIApplicationCommandsResult = APIApplicationCommand[];

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
export type RESTGetAPIApplicationGuildCommandsQuery = RESTGetAPIApplicationCommandsQuery;

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
Expand Down
5 changes: 5 additions & 0 deletions rest/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,11 @@ export type RESTPatchAPIGuildVoiceStateUserJSONBody = AddUndefinedToPossiblyUnde
suppress?: boolean;
}>;

/**
* https://discord.com/developers/docs/resources/guild#modify-user-voice-state
*/
export type RESTPatchAPIGuildVoiceStateUserResult = never;

/**
* https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
*/
Expand Down
18 changes: 18 additions & 0 deletions rest/v10/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ import type {
} from '../../payloads/v10/index';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, StrictPartial } from '../../utils/internals';

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
export interface RESTGetAPIApplicationCommandsQuery {
/**
* Whether to include full localization dictionaries (name_localizations and description_localizations)
* in the returned objects, instead of the name_localized and description_localized fields.
*
* @default false
*/
with_localizations?: boolean;
}

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
Expand Down Expand Up @@ -90,6 +103,11 @@ export type RESTPutAPIApplicationCommandsJSONBody = RESTPostAPIApplicationComman
*/
export type RESTPutAPIApplicationCommandsResult = APIApplicationCommand[];

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
export type RESTGetAPIApplicationGuildCommandsQuery = RESTGetAPIApplicationCommandsQuery;

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
Expand Down
5 changes: 5 additions & 0 deletions rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,11 @@ export type RESTPatchAPIGuildVoiceStateUserJSONBody = AddUndefinedToPossiblyUnde
suppress?: boolean;
}>;

/**
* https://discord.com/developers/docs/resources/guild#modify-user-voice-state
*/
export type RESTPatchAPIGuildVoiceStateUserResult = never;

/**
* https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
*/
Expand Down
18 changes: 18 additions & 0 deletions rest/v9/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ import type {
} from '../../payloads/v9/index';
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, StrictPartial } from '../../utils/internals';

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
export interface RESTGetAPIApplicationCommandsQuery {
/**
* Whether to include full localization dictionaries (name_localizations and description_localizations)
* in the returned objects, instead of the name_localized and description_localized fields.
*
* @default false
*/
with_localizations?: boolean;
}

/**
* https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
*/
Expand Down Expand Up @@ -90,6 +103,11 @@ export type RESTPutAPIApplicationCommandsJSONBody = RESTPostAPIApplicationComman
*/
export type RESTPutAPIApplicationCommandsResult = APIApplicationCommand[];

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
export type RESTGetAPIApplicationGuildCommandsQuery = RESTGetAPIApplicationCommandsQuery;

/**
* https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands
*/
Expand Down