mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix(GuildStickerManager): correctly access guild ID (#7605)
This commit is contained in:
@@ -174,7 +174,7 @@ class GuildStickerManager extends CachedManager {
|
|||||||
async fetchUser(sticker) {
|
async fetchUser(sticker) {
|
||||||
sticker = this.resolve(sticker);
|
sticker = this.resolve(sticker);
|
||||||
if (!sticker) throw new TypeError('INVALID_TYPE', 'sticker', 'StickerResolvable');
|
if (!sticker) throw new TypeError('INVALID_TYPE', 'sticker', 'StickerResolvable');
|
||||||
const data = await this.client.rest.get(Routes.guildSticker(this.guildId, sticker.id));
|
const data = await this.client.rest.get(Routes.guildSticker(this.guild.id, sticker.id));
|
||||||
sticker._patch(data);
|
sticker._patch(data);
|
||||||
return sticker.user;
|
return sticker.user;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user