My friend wrote this amazing code for me but it doesn’t seem to work. It’s meant to send a message on a command then edit the message over and over again. But when I run the code my terminal says DiscordAPIError: Cannot edit a message authored by another user method: ‘patch’, path: ‘/channels/808300406073065483/messages/811398346853318668’, code: 50005, httpStatus: 403 Is there a
Tag: discord.js
(Discord.JS) How do I listen for a user mention for a specific user chosen by the author
So I am in the process of making a Discord.Js bot that includes a command that will let me provide information on certain users. For example: I want to add a command that will provide the PlayStation gamer tag of a mentioned user (lets say the specific users id is <@123>). The input message would look something like this :
How to access property of a property of a JSON object if the initial property is a variable?
I am making a discord bot and have successfully made a system where it stores user’s variables in a JSON file in this format: My current problem is that I am unable to check this ‘status’ property is true or false when I pass in a variable as the initial property. Here is my code: When I run the code,
How to make discord bot wait for reply for 5 minutes and then send a message? Using discord js
I am using Discord js to make a discord bot. The role of the bot is to send a message to user in personal messages and then wait for user response for 5 minutes. If user does not sends anything back to the member then a message is send by the bot that there request has been denied because they
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, and you need a guild member to get their roles.
Remove a specific user reaction from a specific message – Discord.js
I hope you can help. This has been driving me crazy. I am, new to programming and JS, but I am making a discord bot as a hobby project. Please forgive me if I don’t use the correct terminology but I think my question should actually be quite simple. I have a bot that builds a message with an embed.
My discord counting bot is Not doing server by server but every single server combined
I need help with a discord counting bot. Whatever server it is in, it has the same counter number. what I mean is that they are all paired and do the same count instead of it being server by server. Here is the main part (not all of it), I just need to learn to have the servers separate from
Discord.js v12 send the error message from dm
I want to sending the error message from dm to users. But I’m getting ReferenceError: error is not defined error. How can I fix this? Here is my index.js Answer Problem is solved.
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(embed) returns a promise. You can use
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”. Here’s my code: Answer First, make sure you