Code Monkey home page Code Monkey logo

Comments (10)

arqez avatar arqez commented on July 17, 2024 1

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.

17teen avatar 17teen commented on July 17, 2024

Attempt the following:

Code:

const client = new Discord.Client({ ws: { intents: new Discord.Intents.ALL } });
  1. Replace that line of code with the one i just provided.
  2. Re run the programme.

Tell me if this worked for you.

from discord-presser-server-nuker.

arqez avatar arqez commented on July 17, 2024

Didn't work, still experiencing the same error.

Error:
image

from discord-presser-server-nuker.

17teen avatar 17teen commented on July 17, 2024

What version of discord.js is installed? (check package.json)

from discord-presser-server-nuker.

17teen avatar 17teen commented on July 17, 2024

Possible Suggestions

  1. 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.

  1. 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.

arqez avatar arqez commented on July 17, 2024

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

full error below
image

from discord-presser-server-nuker.

17teen avatar 17teen commented on July 17, 2024

Provide discord.js version you are using. (Check package.json file.)

from discord-presser-server-nuker.

17teen avatar 17teen commented on July 17, 2024

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.

arqez avatar arqez commented on July 17, 2024

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

Full error below.
image

from discord-presser-server-nuker.

extrajumprcl avatar extrajumprcl commented on July 17, 2024

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)

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.