I am making a bot for Discord (node.js) and I want to have it’s oauth2 so when the user adds the bot to their server and accepts the oauth app permissions, the user is automatically joined into my bot support server. I’ve seen https://dsc.gg do this, and I want to do something similar. How would I do this in Javascript?
Tag: discord
Discord.js error message on deleting Bot message
So basically I am lately always getting the following Error when I delete a message that my Bot sends. The message is not being used by the Bot anymore, but for some reason, it always crashes after deletion. Here is the Code for the command where it always has the problems with: As you see I never actually want to
Discord voice messaging plugin: getUserMedia() is not supported
Error: Failed to start MediaRecorder: Failed to execute ‘getUserMedia’ on “MediaDevices”: getUserMedia is not supported. Original: https://github.com/MKSx/Send-Audio-Plugin-BetterDiscord Error on line 1026. UPD: getUserMedia() disabled in discord, alternative:https://github.com/l-Nuril-l/Voice-Messages-Plugin-BetterDiscord UPD2: The alternative is dead Code with problem: Answer Intro Basically, better discord is essentially an application running in something like a chrome browser. You can validate this by hitting CTRL+SHIFT+I. The problem
How to import a discord embed from another file
I’m making a discord bot that posts embeds based on commands. I have a lot of embeds and it makes my main.js very cluttered. I want to put my embeds in another file to import from, but I can’t seem to figure out how to do this correctly. What am I doing wrong? MY EMBED CODE: TEST.js MAIN JS CODE:
How to remove role from user in guild discordjs V12?
I have an economy system on my discord server and players can buy VIP for 30 days. Data are saved in firestore cloud database. The bot checks every 4 hours if someone has over his VIP and it should remove it but it doesn’t work. Console says: Cannot read property ‘roles’ of undefined. Here is the part of the code
How would I get my js Discord bot to post an embed to a public channel on the event on a private channel receiving a message?
I’m new to this and I feel like I’ve hit a wall! I have a webhook setup so any new sales for a product get posted to a private channel for an admin to action, I have just created a ‘sales train’ bot that will simply post a nice embed when i run the !sale command in general chat but
(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