Skip to content

Commit 822956f

Browse files
authored
feat: add Get Sticker Pack endpoint (#1053)
1 parent d504763 commit 822956f

File tree

8 files changed

+52
-0
lines changed

8 files changed

+52
-0
lines changed

deno/rest/v10/mod.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,14 @@ export const Routes = {
856856
return '/sticker-packs' as const;
857857
},
858858

859+
/**
860+
* Route for:
861+
* - GET `/sticker-packs/{pack.id}`
862+
*/
863+
stickerPack(packId: Snowflake) {
864+
return `/sticker-packs/${packId}` as const;
865+
},
866+
859867
/**
860868
* Route for:
861869
* - GET `/sticker-packs`

deno/rest/v10/sticker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
1212
sticker_packs: APIStickerPack[];
1313
}
1414

15+
/**
16+
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
17+
*/
18+
export type RESTGetAPIStickerPack = APIStickerPack;
19+
1520
/**
1621
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
1722
*

deno/rest/v9/mod.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,14 @@ export const Routes = {
865865
return '/sticker-packs' as const;
866866
},
867867

868+
/**
869+
* Route for:
870+
* - GET `/sticker-packs/{pack.id}`
871+
*/
872+
stickerPack(packId: Snowflake) {
873+
return `/sticker-packs/${packId}` as const;
874+
},
875+
868876
/**
869877
* Route for:
870878
* - GET `/sticker-packs`

deno/rest/v9/sticker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
1212
sticker_packs: APIStickerPack[];
1313
}
1414

15+
/**
16+
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
17+
*/
18+
export type RESTGetAPIStickerPack = APIStickerPack;
19+
1520
/**
1621
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
1722
*

rest/v10/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,14 @@ export const Routes = {
856856
return '/sticker-packs' as const;
857857
},
858858

859+
/**
860+
* Route for:
861+
* - GET `/sticker-packs/{pack.id}`
862+
*/
863+
stickerPack(packId: Snowflake) {
864+
return `/sticker-packs/${packId}` as const;
865+
},
866+
859867
/**
860868
* Route for:
861869
* - GET `/sticker-packs`

rest/v10/sticker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
1212
sticker_packs: APIStickerPack[];
1313
}
1414

15+
/**
16+
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
17+
*/
18+
export type RESTGetAPIStickerPack = APIStickerPack;
19+
1520
/**
1621
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
1722
*

rest/v9/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,14 @@ export const Routes = {
865865
return '/sticker-packs' as const;
866866
},
867867

868+
/**
869+
* Route for:
870+
* - GET `/sticker-packs/{pack.id}`
871+
*/
872+
stickerPack(packId: Snowflake) {
873+
return `/sticker-packs/${packId}` as const;
874+
},
875+
868876
/**
869877
* Route for:
870878
* - GET `/sticker-packs`

rest/v9/sticker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export interface RESTGetStickerPacksResult {
1212
sticker_packs: APIStickerPack[];
1313
}
1414

15+
/**
16+
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
17+
*/
18+
export type RESTGetAPIStickerPack = APIStickerPack;
19+
1520
/**
1621
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
1722
*

0 commit comments

Comments
 (0)