mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix(Sticker): replace 'this.guildID' (undefined) by 'this.guildId' in fetchUser (#6160)
Co-authored-by: Apokalypt <enterprise@apokalypt.fr>
This commit is contained in:
@@ -156,7 +156,7 @@ class Sticker extends Base {
|
|||||||
*/
|
*/
|
||||||
async fetchUser() {
|
async fetchUser() {
|
||||||
if (this.partial) await this.fetch();
|
if (this.partial) await this.fetch();
|
||||||
if (!this.guildID) throw new Error('NOT_GUILD_STICKER');
|
if (!this.guildId) throw new Error('NOT_GUILD_STICKER');
|
||||||
|
|
||||||
const data = await this.client.api.guilds(this.guildId).stickers(this.id).get();
|
const data = await this.client.api.guilds(this.guildId).stickers(this.id).get();
|
||||||
this._patch(data);
|
this._patch(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user