Skip to content
Advertisement

Tag: discord.js

Multiple if/else conditions (discord bot)

I’m trying to create a simple discord bot, currently using nodeJS. I’m creating specific commands that only specific users can use and whenever someone who does not have permission to use such command can get a reply “You don’t have permission”. (I hope you get the idea. sorry for the bad wording). This is my current code: But what happens

Reason after blacklisting command Discord.js

I want to add a reason to my blacklists (with the command !blacklist {userid} {reason}) which are visible in the embeds below like .addField (“💬 Reason:”, somecode) how can I fix this? Answer First you’ll want to check if there is no reason, this can be simple done by checking, for both approaches, if the second argument is undefined, like

I am trying to make a discord.js command that creates a role named “MUTED” and overwrites all the channel permission to set “Send message” to false [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I want to make it so that it creates the role and then overwrites the permissions in every channel that exists in the server. Answer

Advertisement