Skip to content

Tag: discord.js

Send a message if there is a role Discord.js

Bot send a message if the User who clicked the reaction has the ROLE “ID” I decided to try this, but it didn’t work out ====Here is the main Code==== Answer You should check the role of the member who reacted (the member found in reaction.users.cache). reaction.users.cache returns a user, an…

How can I delete a message after sending it?

I have a code that sends a message when a member joins the guild and I want to shortly delete it afterwards. My code: I tried embed.delete or just the classic msg.delete but it doesn’t work as I can/don’t know how to define “msg” as the last msg the bot has sent. Answer kanal.send(embe…

Slowmode command

When I type ;sm, my bot responds with: “You need to specify a time in seconds” <– Thats okay. But when I type ;sm [time], it still responds with: “You need to specify a time in seconds.”, but it should set the rate limit and tell me that “Slowmode is now [time]s”. …