Skip to content
Advertisement

Tag: bots

Discord.js Bulk Delete command

I am trying to add a bulk delete command to my bot but when I type how many messages I want to delete, I get the following error: Here’s the code: Answer To use the parseInt(), you have to add the decimal base, so 10 -> parseInt(args[0], 10);. The snippet of code I have put above is working well.

How to create a role with discord.js

I’ve been trying to make a discord bot using discord.js, but I can’t seem to find any documentation on how to create a role that works in 2018. All the ones I can find that work, no longer work as they have removed the referenced function. In https://discord.js.org/#/docs/main/stable/class/Role there is no mention of a createRole(“role”, “roleName”); type function. If anyone

How to make bot Whent, the bot

I have this code but I have errors Answer You have few errors in code, first addField method takes 2 parameters, and both are type of string, setFooter also. client.users.get(“404968772969955329”).send(yumz) grabs user(visible by bot) with id 404968772969955329 and sends him a direct message, so if you want to send message direct to guild channel you’ll need something like this:

How to Play Audio File Into Channel?

How do you play an audio file from a Discord bot? Needs to play a local file, be in JS, and upon a certain message being sent it will join the user who typed the message, and will play the file to that channel. Answer GitHub Project: LINK In order to do this there are a few things you have

Advertisement