Skip to content

Commit

Permalink
dont block empty arrays
Browse files Browse the repository at this point in the history
a server owner/dev might want to block the default.exemptPermissions of the bot for certain giveaways, and so he could provide a empty array
  • Loading branch information
Nico105 committed Jul 27, 2021
1 parent ec3de33 commit 2745869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Giveaway extends EventEmitter {
* @type {Discord.PermissionResolvable[]}
*/
get exemptPermissions() {
return this.options.exemptPermissions?.length ? this.options.exemptPermissions : this.manager.options.default.exemptPermissions;
return this.options.exemptPermissions || this.manager.options.default.exemptPermissions;
}

/**
Expand Down

0 comments on commit 2745869

Please sign in to comment.