fix(Sticker): replace 'this.guildID' (undefined) by 'this.guildId' in fetchUser (#6160)

Co-authored-by: Apokalypt <enterprise@apokalypt.fr>
This commit is contained in:
Apokalypt
2021-07-21 09:39:17 +02:00
committed by GitHub
parent 85865058ed
commit 07017a9699

View File

@@ -156,7 +156,7 @@ class Sticker extends Base {
*/
async fetchUser() {
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();
this._patch(data);