SpikeHD / AmazonMonitor

Amazon price checker, item monitor and stock monitor, all shoved into a Discord bot
GNU General Public License v3.0
235 stars 39 forks source link

Bitfield invalid error #58

Closed DarylRob closed 3 years ago

DarylRob commented 3 years ago

Hi,

I'm getting the following error RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number. at Function.resolve (C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\util\BitField.js:150:19) at Permissions.has (C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\util\BitField.js:45:28) at Permissions.has (C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\util\Permissions.js:45:85) at C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\util\BitField.js:44:56 at Array.every () at Permissions.has (C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\util\BitField.js:44:40) at Permissions.has (C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\util\Permissions.js:45:85) at GuildMember.hasPermission (C:\Users\Administrator\Desktop\AmazonMonitor-master\node_modules\discord.js\src\structures\GuildMember.js:271:24) at Client. (C:\Users\Administrator\Desktop\AmazonMonitor-master\index.js:61:26) at Client.emit (events.js:315:20) { bit: 'permission_1',

Seems to happen when i try to add something to the watchlist

SpikeHD commented 3 years ago

In the required_perms section of your config.json, you have permission_1 listed. This is not a valid permission, so you must either use an empty array (AKA make the value []) or list a valid permission.