nuggies-bot / buttonroles-example Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hello, i have an error with this bot, when i write done in the discord chat, in the console appears me that "TypeError: Provide a valid Channel ID"
Hi, sorry again for asking, but can't fix this error.
I did check the code, For some reason it says invalid syntax
I tested the slash commands/ and aswell the normal v13 version.
tested ike this:
5149031497655XXXXX red xbox โ
message.channel.send((msg.content.split(' ')[0].match(/[0-9]{18}/g) & (msg.content.split(' ')[1])) );
it returns 5149031497655XXXXX red
so thats good\
I really dont know why i get this error then,
The error is in this line,
if (!msg.content.split(' ')[0].match(/[0-9]{18}/g) || !colors.includes(msg.content.split(' ')[1])) return message.channel.send('Invalid syntax');
how to make another text when the bot gives the role ?
this is my log:
SocketManager.js:244
throw new Error(WSCodes[error.code]);
^
Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (C:\Users\username\Downloads\buttonroles-example-13\buttonroles-example-13\node_modules\discord.js\src\client\websocket\WebSocketManager.js:244:15)
at async Client.login (C:\Users\username\Downloads\buttonroles-example-13\buttonroles-example-13\node_modules\discord.js\src\client\Client.js:245:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.