Skip to content

Commit

Permalink
chore: more v10 changes by @advaith1
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 authored and vladfrangu committed Feb 15, 2022
1 parent 5f0419d commit a10e45e
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 32 deletions.
4 changes: 3 additions & 1 deletion deno/payloads/v10/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ export interface APIApplication {
/**
* If this application is a game sold on Discord, this field will be the summary field for the store page
* of its primary sku
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
*
Expand Down
4 changes: 3 additions & 1 deletion deno/payloads/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,10 @@ export interface APIGuildIntegrationApplication {
description: string;
/**
* The summary of the app
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The bot associated with this application
*
Expand Down
4 changes: 3 additions & 1 deletion deno/payloads/v8/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ export interface APIApplication {
/**
* If this application is a game sold on Discord, this field will be the summary field for the store page
* of its primary sku
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
*
Expand Down
4 changes: 3 additions & 1 deletion deno/payloads/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,10 @@ export interface APIGuildIntegrationApplication {
description: string;
/**
* The summary of the app
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The bot associated with this application
*
Expand Down
4 changes: 3 additions & 1 deletion deno/payloads/v9/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ export interface APIApplication {
/**
* If this application is a game sold on Discord, this field will be the summary field for the store page
* of its primary sku
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
*
Expand Down
4 changes: 3 additions & 1 deletion deno/payloads/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,10 @@ export interface APIGuildIntegrationApplication {
description: string;
/**
* The summary of the app
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The bot associated with this application
*
Expand Down
7 changes: 0 additions & 7 deletions deno/rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,6 @@ export interface RESTGetAPIChannelThreadsArchivedQuery {
limit?: number;
}

/**
* https://discord.com/developers/docs/resources/channel#list-active-threads
*
* @deprecated Use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead. Will be removed in v10.
*/
export type RESTGetAPIChannelThreadsResult = APIThreadList;

/**
* https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads
*/
Expand Down
2 changes: 2 additions & 0 deletions deno/rest/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedProperti
delete_message_days?: number;
/**
* Reason for the ban
*
* @deprecated Removed in API v10, use the `X-Audit-Log-Reason` header instead.
*/
reason?: string;
}>;
Expand Down
2 changes: 1 addition & 1 deletion deno/rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export interface RESTGetAPIChannelThreadsArchivedQuery {
/**
* https://discord.com/developers/docs/resources/channel#list-active-threads
*
* @deprecated Use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead. Will be removed in v10.
* @deprecated Removed in API v10, use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead.
*/
export type RESTGetAPIChannelThreadsResult = APIThreadList;

Expand Down
2 changes: 2 additions & 0 deletions deno/rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedProperti
delete_message_days?: number;
/**
* Reason for the ban
*
* @deprecated Removed in API v10, use the `X-Audit-Log-Reason` header instead.
*/
reason?: string;
}>;
Expand Down
3 changes: 1 addition & 2 deletions deno/rest/v9/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,7 @@ export const Routes = {
/**
* Route for:
* - GET `/channels/{channel.id}/threads/active`
* (deprecated, use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead.
* Will be removed in v10.)
* (deprecated, removed in API v10, use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead.)
* - GET `/channels/{channel.id}/threads/archived/public`
* - GET `/channels/{channel.id}/threads/archived/private`
*/
Expand Down
4 changes: 3 additions & 1 deletion payloads/v10/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ export interface APIApplication {
/**
* If this application is a game sold on Discord, this field will be the summary field for the store page
* of its primary sku
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
*
Expand Down
4 changes: 3 additions & 1 deletion payloads/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,10 @@ export interface APIGuildIntegrationApplication {
description: string;
/**
* The summary of the app
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The bot associated with this application
*
Expand Down
4 changes: 3 additions & 1 deletion payloads/v8/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ export interface APIApplication {
/**
* If this application is a game sold on Discord, this field will be the summary field for the store page
* of its primary sku
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
*
Expand Down
4 changes: 3 additions & 1 deletion payloads/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,10 @@ export interface APIGuildIntegrationApplication {
description: string;
/**
* The summary of the app
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The bot associated with this application
*
Expand Down
4 changes: 3 additions & 1 deletion payloads/v9/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ export interface APIApplication {
/**
* If this application is a game sold on Discord, this field will be the summary field for the store page
* of its primary sku
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
*
Expand Down
4 changes: 3 additions & 1 deletion payloads/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,10 @@ export interface APIGuildIntegrationApplication {
description: string;
/**
* The summary of the app
*
* @deprecated Always an empty string, will be removed in v11
*/
summary: string;
summary: '';
/**
* The bot associated with this application
*
Expand Down
7 changes: 0 additions & 7 deletions rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,13 +642,6 @@ export interface RESTGetAPIChannelThreadsArchivedQuery {
limit?: number;
}

/**
* https://discord.com/developers/docs/resources/channel#list-active-threads
*
* @deprecated Use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead. Will be removed in v10.
*/
export type RESTGetAPIChannelThreadsResult = APIThreadList;

/**
* https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads
*/
Expand Down
2 changes: 2 additions & 0 deletions rest/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedProperti
delete_message_days?: number;
/**
* Reason for the ban
*
* @deprecated Removed in API v10, use the `X-Audit-Log-Reason` header instead.
*/
reason?: string;
}>;
Expand Down
2 changes: 1 addition & 1 deletion rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export interface RESTGetAPIChannelThreadsArchivedQuery {
/**
* https://discord.com/developers/docs/resources/channel#list-active-threads
*
* @deprecated Use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead. Will be removed in v10.
* @deprecated Removed in API v10, use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead.
*/
export type RESTGetAPIChannelThreadsResult = APIThreadList;

Expand Down
2 changes: 2 additions & 0 deletions rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedProperti
delete_message_days?: number;
/**
* Reason for the ban
*
* @deprecated Removed in API v10, use the `X-Audit-Log-Reason` header instead.
*/
reason?: string;
}>;
Expand Down
3 changes: 1 addition & 2 deletions rest/v9/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,7 @@ export const Routes = {
/**
* Route for:
* - GET `/channels/{channel.id}/threads/active`
* (deprecated, use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead.
* Will be removed in v10.)
* (deprecated, removed in API v10, use [List Active Guild Threads](https://discord.com/developers/docs/resources/guild#list-active-threads) instead.)
* - GET `/channels/{channel.id}/threads/archived/public`
* - GET `/channels/{channel.id}/threads/archived/private`
*/
Expand Down

0 comments on commit a10e45e

Please sign in to comment.