mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
feat(Sticker): updates, sticker packs, and guild stickers (#5867)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: BannerBomb <BannerBomb55@gmail.com> Co-authored-by: Noel <icrawltogo@gmail.com> Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
@@ -153,15 +153,12 @@ class Message extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of stickers in the message
|
||||
* A collection of (partial) stickers in the message
|
||||
* @type {Collection<Snowflake, Sticker>}
|
||||
*/
|
||||
this.stickers = new Collection();
|
||||
if (data.stickers) {
|
||||
for (const sticker of data.stickers) {
|
||||
this.stickers.set(sticker.id, new Sticker(this.client, sticker));
|
||||
}
|
||||
}
|
||||
this.stickers = new Collection(
|
||||
(data.sticker_items ?? data.stickers)?.map(s => [s.id, new Sticker(this.client, s)]),
|
||||
);
|
||||
|
||||
/**
|
||||
* The timestamp the message was sent at
|
||||
|
||||
Reference in New Issue
Block a user