Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2351,6 +2351,7 @@ declare namespace Eris {
getSelf(): Promise<ExtendedUser>;
getSoundboardSounds(): Promise<SoundboardSound<false>[]>;
getStageInstance(channelID: string): Promise<StageInstance>;
getStickerPack(packID: string): Promise<StickerPack>;
getThreadMember(channelID: string, userID: string, withMember?: boolean): Promise<ThreadMember>;
getThreadMembers(channelID: string, options?: GetThreadMembersOptions): Promise<ThreadMember[]>;
getVoiceRegions(guildID?: string): Promise<VoiceRegion[]>;
Expand Down
9 changes: 9 additions & 0 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3386,6 +3386,15 @@ class Client extends EventEmitter {
return this.requestHandler.request("GET", Endpoints.STAGE_INSTANCE(channelID), true).then((instance) => new StageInstance(instance, this));
}

/**
* Get a sticker pack
* @arg {String} packID The ID of the pack
* @returns {Promise<Object>} An object representing the [sticker pack](https://discord.dev/resources/sticker#sticker-pack-object)
*/
getStickerPack(packID) {
return this.requestHandler.request("GET", Endpoints.STICKER_PACK(packID), true);
}

/**
* Get a member that is part of a thread channel
* @arg {String} channelID The ID of the thread channel
Expand Down
1 change: 1 addition & 0 deletions lib/rest/Endpoints.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.