I’m working on an add role command in discord.js v13 and this is the error I am getting: Error Answer What your error means is that your bot doesn’t have permissions to give a role to a user. It might be trying to add a role which has a higher position than the bot’s own role. One way to stop
Tag: discord
TypeError: path.join is not a function (got the error in my handleEvents.js file)
I am trying to make a discord bot and i got this error in my handleEvents.js file The code: Answer You are missing a path module import and by using the name path as property of your callback, you would be overwriting the path module.
“Jump to Message” Button
Hi so basically I’m making a suggestion command. Once the user ran the command it will reply “Suggestion Submitted” with “Jump to Suggestion” url button but I’m getting error with the button. Here’s my code The Error Error: MessageButton must be a String Hope to get the some help with this as this have become the issue for me that
Discord JS, my users are able to create unlimited ticket channels when they react to the emoji
Users are able to create unlimited ticket channels when they react on 🎫 this emoji, what part do I miss in my script so that users are only able to create one ticket until they close it again? My bots ID below is: 701327880046510080 Any help would be appreciated! 🙂 Answer Add these lines to your code
pinterest web scrape image
I’m trying to get a url from a pinterest image and send a url of it through the general profile of the user on pinterest, but it’s returning me undefined my code: Answer The problem is that the page is still loading. #mweb-unauth-container > div > div:nth-child(2) doesn’t exist, because #mweb-unauth-container > div only has one div child, and it’s
Faster and cleaner way to update Discord Message Embed with a MessageComponentInteraction collector
I’m trying to make a horse race command for my discord bot (TypeScript). The code itself works fine, but I have to update an embed which contains the race and the participants. The thing is that for it to properly update, I have to set its description every time that collector.on(“collect”) fires. I want to ask if there’s a better,
403 Error when setting application command permissions on Discord
My bot got a 403 error, even though it never happened before, and the code hasn’t changed at all. Trying to set fullPermissions gives me a 405 Error instead The paths /applications/{applicationId}/guilds/{guildId}/commands/{commandId}/permissions and /applications/{applicationId}/guilds/{guildId}/commands/permissions worked perfectly fine before, why wouldn’t they work now? Answer Discord has released Permissions V2 to all guilds yesterday (April 27, 2022). Bots can no longer
member cannot be mentioned in the embed discord.js v13
I was making a join and leave log system that returns a specific embed when someone joins/leaves the server. but when the bot sends the embed in the channel, the member is not mentioned. My code: Notes: No one can see the channel that I am sending this embed to, just me and the bot I am using discord.js v13
How to filter the member counter in discord.js v13
I made a member counting system for my server but it counts every member that is joined. I want to filter the counter to just count the humans/users My code: I am using discord.js v13 and node.js v16 Answer You can just filter through all the members in a server and remove all the members which are bots by checking
My bot is collecting it’s own message (infinite loop) and spamming an specific line
the bot spams the (`You Found ${earnings} Coins!`); and I think it’s collecting it’s own messages (infinite loop) I asked the problem from some of my friends and they said the same: “the bot is collecting it’s own messages, remove the collector”. but I don’t know how can I replace the collector. Answer In discord.js v13 all Collector related classes