Git Product home page Git Product logo

buttonroles-example's People

Contributors

assassin-1234 avatar legitmate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

buttonroles-example's Issues

Error 'DISALLOWED_INTENTS'

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'
}

Texts

how to make another text when the bot gives the role ?

Provide a valid channel ID

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"

getting invalid syntax

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');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.