Skip to content

Commit

Permalink
feat: add Get Sticker Pack endpoint (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Aug 14, 2024
1 parent d504763 commit 822956f
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deno/rest/v10/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,14 @@ export const Routes = {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs/{pack.id}`
*/
stickerPack(packId: Snowflake) {
return `/sticker-packs/${packId}` as const;
},

/**
* Route for:
* - GET `/sticker-packs`
Expand Down
5 changes: 5 additions & 0 deletions deno/rest/v10/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
*/
export type RESTGetAPIStickerPack = APIStickerPack;

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
Expand Down
8 changes: 8 additions & 0 deletions deno/rest/v9/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,14 @@ export const Routes = {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs/{pack.id}`
*/
stickerPack(packId: Snowflake) {
return `/sticker-packs/${packId}` as const;
},

/**
* Route for:
* - GET `/sticker-packs`
Expand Down
5 changes: 5 additions & 0 deletions deno/rest/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
*/
export type RESTGetAPIStickerPack = APIStickerPack;

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
Expand Down
8 changes: 8 additions & 0 deletions rest/v10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,14 @@ export const Routes = {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs/{pack.id}`
*/
stickerPack(packId: Snowflake) {
return `/sticker-packs/${packId}` as const;
},

/**
* Route for:
* - GET `/sticker-packs`
Expand Down
5 changes: 5 additions & 0 deletions rest/v10/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
*/
export type RESTGetAPIStickerPack = APIStickerPack;

/**
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
*
Expand Down
8 changes: 8 additions & 0 deletions rest/v9/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,14 @@ export const Routes = {
return '/sticker-packs' as const;
},

/**
* Route for:
* - GET `/sticker-packs/{pack.id}`
*/
stickerPack(packId: Snowflake) {
return `/sticker-packs/${packId}` as const;
},

/**
* Route for:
* - GET `/sticker-packs`
Expand Down
5 changes: 5 additions & 0 deletions rest/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
sticker_packs: APIStickerPack[];
}

/**
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
*/
export type RESTGetAPIStickerPack = APIStickerPack;

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

0 comments on commit 822956f

Please sign in to comment.