Skip to content

Commit

Permalink
fix: standard stickers are now free (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Aug 24, 2023
1 parent 1eb0161 commit 018d889
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 12 deletions.
2 changes: 1 addition & 1 deletion deno/payloads/v10/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface APISticker {
*/
export enum StickerType {
/**
* An official sticker in a pack, part of Nitro or in a removed purchasable pack
* An official sticker in a pack
*/
Standard = 1,
/**
Expand Down
2 changes: 1 addition & 1 deletion deno/payloads/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface APISticker {
*/
export enum StickerType {
/**
* An official sticker in a pack, part of Nitro or in a removed purchasable pack
* An official sticker in a pack
*/
Standard = 1,
/**
Expand Down
10 changes: 10 additions & 0 deletions deno/rest/v10/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,16 @@ export const Routes = {
* Route for:
* - GET `/sticker-packs`
*/
stickerPacks() {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs`
*
* @deprecated Use {@link Routes.stickerPacks} instead.
*/
nitroStickerPacks() {
return '/sticker-packs' as const;
},
Expand Down
11 changes: 9 additions & 2 deletions deno/rest/v10/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v10/mod.ts';
export type RESTGetAPIStickerResult = APISticker;

/**
* https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*/
export interface RESTGetNitroStickerPacksResult {
export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
* @deprecated Use `RESTGetStickerPacksResult` instead
*/
export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult;

/**
* https://discord.com/developers/docs/resources/sticker#list-guild-stickers
*/
Expand Down
10 changes: 10 additions & 0 deletions deno/rest/v9/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,16 @@ export const Routes = {
* Route for:
* - GET `/sticker-packs`
*/
stickerPacks() {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs`
*
* @deprecated Use {@link Routes.stickerPacks} instead.
*/
nitroStickerPacks() {
return '/sticker-packs' as const;
},
Expand Down
11 changes: 9 additions & 2 deletions deno/rest/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v9/mod.ts';
export type RESTGetAPIStickerResult = APISticker;

/**
* https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*/
export interface RESTGetNitroStickerPacksResult {
export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
* @deprecated Use `RESTGetStickerPacksResult` instead
*/
export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult;

/**
* https://discord.com/developers/docs/resources/sticker#list-guild-stickers
*/
Expand Down
2 changes: 1 addition & 1 deletion payloads/v10/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface APISticker {
*/
export enum StickerType {
/**
* An official sticker in a pack, part of Nitro or in a removed purchasable pack
* An official sticker in a pack
*/
Standard = 1,
/**
Expand Down
2 changes: 1 addition & 1 deletion payloads/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface APISticker {
*/
export enum StickerType {
/**
* An official sticker in a pack, part of Nitro or in a removed purchasable pack
* An official sticker in a pack
*/
Standard = 1,
/**
Expand Down
10 changes: 10 additions & 0 deletions rest/v10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,16 @@ export const Routes = {
* Route for:
* - GET `/sticker-packs`
*/
stickerPacks() {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs`
*
* @deprecated Use {@link Routes.stickerPacks} instead.
*/
nitroStickerPacks() {
return '/sticker-packs' as const;
},
Expand Down
11 changes: 9 additions & 2 deletions rest/v10/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v10/index';
export type RESTGetAPIStickerResult = APISticker;

/**
* https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*/
export interface RESTGetNitroStickerPacksResult {
export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
* @deprecated Use `RESTGetStickerPacksResult` instead
*/
export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult;

/**
* https://discord.com/developers/docs/resources/sticker#list-guild-stickers
*/
Expand Down
10 changes: 10 additions & 0 deletions rest/v9/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,16 @@ export const Routes = {
* Route for:
* - GET `/sticker-packs`
*/
stickerPacks() {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs`
*
* @deprecated Use {@link Routes.stickerPacks} instead.
*/
nitroStickerPacks() {
return '/sticker-packs' as const;
},
Expand Down
11 changes: 9 additions & 2 deletions rest/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ import type { APISticker, APIStickerPack } from '../../payloads/v9/index';
export type RESTGetAPIStickerResult = APISticker;

/**
* https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*/
export interface RESTGetNitroStickerPacksResult {
export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
* @deprecated Use `RESTGetStickerPacksResult` instead
*/
export type RESTGetNitroStickerPacksResult = RESTGetStickerPacksResult;

/**
* https://discord.com/developers/docs/resources/sticker#list-guild-stickers
*/
Expand Down

0 comments on commit 018d889

Please sign in to comment.