Comments (10)
Nevermind, it works. The packages just didn't install properly so I re-installed them. Thank you for your help.
from discord-presser-server-nuker.
Attempt the following:
Code:
const client = new Discord.Client({ ws: { intents: new Discord.Intents.ALL } });
- Replace that line of code with the one i just provided.
- Re run the programme.
Tell me if this worked for you.
from discord-presser-server-nuker.
Didn't work, still experiencing the same error.
from discord-presser-server-nuker.
What version of discord.js is installed? (check package.json)
from discord-presser-server-nuker.
Possible Suggestions
- Try implementing the following code:
const client = new Discord.Client({ ws: { intents: new Discord.Intents( Discord.Intents.PRIVILEGED ) } });
If this did not work attempt the second suggestion.
- Assuming you have toggled your privileged intents for your bot just remove the whole code.
It should look like this:
const client = new Discord.Client();
How to toggle privileged intents? Read Here
Tell me if this worked for you.
from discord-presser-server-nuker.
Thank you, second suggestion worked perfectly.
Shame that I couldn't think of this earlier. Thank you for the help.
Edit:
Tried executing a command, but kept getting
(node:11312) UnhandledPromiseRejectionWarning: TypeError: message.mentions.has is not a function
from discord-presser-server-nuker.
Provide discord.js version you are using. (Check package.json
file.)
from discord-presser-server-nuker.
Possible Answer:
Try the following code:
message.mentions.users.get(client.user.id)
Implement this code in the if statement.
from discord-presser-server-nuker.
I am on [email protected].
Whenever I run a command, it does delete the message now, but does not execute it, and gives me this error instead:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'forEach' of undefined
from discord-presser-server-nuker.
Nevermind, it works. The packages just didn't install properly so I re-installed them. Thank you for your help.
nigga u gon tell us how to do it or what?
from discord-presser-server-nuker.
Related Issues (20)
- Cannot find module HOT 4
- (node:12496) DeprecationWarning: Passing strings for MessageEmbed#setFooter is deprecated. Pass a sole object instead. (Use `node --trace-deprecation ...` to show where the warning was created) HOT 2
- not working on linux (Ubuntu) HOT 4
- (node:21704) HOT 2
- Please verify that the package.json has a valid "main" entry HOT 1
- You are not authorised to use any of this tools' commands. HOT 2
- Error: Can't find module 'discord.js' HOT 2
- Permissions HOT 1
- Message Bug HOT 2
- Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted. HOT 1
- Comes back as unxspected
- Hi
- 5 minutes but it still say "Please wait..." HOT 1
- Can I have it
- Nuke
- Is it not a virus or token steal or sum? HOT 1
- Iām locked out of my account HOT 1
- Nuked
- Commands not working?
- No download HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-presser-server-nuker.