skip to Main Content

Javascript – RangeError [BitFieldInvalid]: Invalid bitfield flag or number: BAN_MEMBERS

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: BAN_MEMBERS. at PermissionsBitField.resolve (C:UserslukasDesktopbotnode_modulesdiscord.jssrcutilBitField.js:172:11) at PermissionsBitField.has (C:UserslukasDesktopbotnode_modulesdiscord.jssrcutilBitField.js:60:28) at PermissionsBitField.has (C:UserslukasDesktopbotnode_modulesdiscord.jssrcutilPermissionsBitField.js:92:82) at Object.execute (C:UserslukasDesktopbotcommandsutilityserver.js:9:39) at Client.<anonymous> (C:UserslukasDesktopbotindex.js:62:17) at Client.emit (node:events:513:28) at InteractionCreateAction.handle (C:UserslukasDesktopbotnode_modulesdiscord.jssrcclientactionsInteractionCreate.js:97:12) at module.exports [as INTERACTION_CREATE] (C:UserslukasDesktopbotnode_modulesdiscord.jssrcclientwebsockethandlersINTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (C:UserslukasDesktopbotnode_modulesdiscord.jssrcclientwebsocketWebSocketManager.js:354:31) at WebSocketManager.<anonymous> (C:UserslukasDesktopbotnode_modulesdiscord.jssrcclientwebsocketWebSocketManager.js:238:12)…

VIEW QUESTION

Javascript – Discord JS Modals returning "Expected the value to be a string or a number"

I'm trying to make a series of 3 modals that ask the user questions, but when creating the modals it throws this error. ValidationError: Expected the value to be a string or number at NativeEnumValidator.handle (/node_modules/@sapphire/shapeshift/dist/index.js:1871:25) at NativeEnumValidator.parse (/node_modules/@sapphire/shapeshift/dist/index.js:212:88) at…

VIEW QUESTION
Back To Top
Search