Skip to content

Commit

Permalink
🐛 auto check for GUILD_MEMBERS intent
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Jun 15, 2021
1 parent 31106c6 commit 025ae94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Giveaway extends EventEmitter {
* The URL appearing as the thumbnail on the giveaway embed.
* @type {string}
*/
this.thumbnail = options.thumbnail;
this.thumbnail = options.thumbnail;
/**
* Extra data concerning this giveaway
* @type {any}
Expand Down
1 change: 1 addition & 0 deletions src/Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class GiveawaysManager extends EventEmitter {
* @type {GiveawaysManagerOptions}
*/
this.options = merge(defaultManagerOptions, options);
if (new Discord.Intents(this.client.options.intents || this.client.options.ws.intents).has('GUILD_MEMBERS')) this.options.hasGuildMemberIntent = true;
if (init) this._init();
}

Expand Down

1 comment on commit 025ae94

@Nico105
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With support for v13

Please sign in to comment.