Skip to content

Commit

Permalink
exemptPermissions is now empty by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Jan 22, 2020
1 parent 1e8ac84 commit f85fe0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ <h5 class="subsection-title">Properties:</h5>

<td class="default">

['MANAGE_MESSAGES', 'ADMINISTRATOR']
[]

</td>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-giveaways",
"version": "3.0.7",
"version": "3.0.8",
"description": "A complete framework to facilitate the creation of giveaways using discord.js",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const GiveawaysMessages = {
* @property {string} [DJSlib] The Discord.js library version you want to use
* @property {Object} [default] The default options for new giveaways.
* @property {Boolean} [botsCanWin=false] Whether the bots are able to win a giveaway.
* @property {Array<PermissionsResolvable>} [exemptPermissions=['MANAGE_MESSAGES', 'ADMINISTRATOR']] Members with any of these permissions won't be able to win a giveaway.
* @property {Array<PermissionsResolvable>} [exemptPermissions=[]] Members with any of these permissions won't be able to win a giveaway.
* @property {Function} [exemptMembers] Function to filter members. If true is returned, the member won't be able to win the giveaway.
* @property {string} [embedColor='#FF0000'] The giveaway embeds color when they are running
* @property {string} [embedColorEnd='#000000'] The giveaway embeds color when they are ended
Expand All @@ -60,7 +60,7 @@ const GiveawaysManagerOptions = {
DJSlib: Discord.version.split('.')[0] === '12' ? 'master' : 'stable',
default: {
botsCanWin: false,
exemptPermissions: ['MANAGE_MESSAGES', 'ADMINISTRATOR'],
exemptPermissions: [],
exemptMembers: () => false,
embedColor: '#FF0000',
reaction: '🎉'
Expand Down

0 comments on commit f85fe0a

Please sign in to comment.