Questions tagged [discord]
For use with the Discord API, which provides an interface that allows you to program bots for the Discord messaging services.
let user = client.users.cache.get(config.admin);
TypeError: Cannot read property 'send' of undefined
I've been making a music bot, however it does not seem to want to play audio.
I have installed ffmpeg, opusscript, ytdl-core and all the essential NPM packages that are needed to play music.
When I ...
I'm making a DiscordJS Bot and I have an issue with my userinfo command.
I want to know when the user join the guild, and it reply with the date of today. I'm sure the user didn't join today.
I have a reminder command on my bot, but I'd like for it to store reminders in case my bot resets. I don't know how I'd go about doing this. Can anyone help me?
This is my command:
const ms = ...
The goal of the command is for the bot to send a random video posted from a chosen youtube channel. is this possible? I'm using discord.js for the bot
I made a script called clear.
This script works as intended.
But how can my clear script skip the pinned messages in the channel?
This is my script:
module.exports.run = async (bot, message, args) =...
I'm trying to make a command that sends an embed and reacts with an emoji and when a member clicks the emoji it gives them a random role. any idea on how I would go about doing this?
Here's a bot that fetches the json data and then posts the image of a burger.
I want to also get the title and the other objects from that post but i'm just dazzled as to how to properly syntax it. ...
ok so i have no experience with discord bots, what im trying to do is code a bot to the following:
for command $duel @member:
*the bot check the role of both members.
*the bot give each member an HP ...
Alright so I'm pretty new to the Discord.js environment but I've been looking and trying everything from everywhere but I always get the same errors for this and I don't really know why. Specifecally ...
When I or some random user try to use the !clear command I see this message in my channel.
"Yeah... That's not a number? I also can't delete 0 messages by the way.
Something went wrong... " + this ...
I am making d-day count and notice bot in discord now. i need my bot to send d-day count message every 12 hours. how can i make that happen??
from discord.ext import commands
from bs4 ...
I am trying to setup roles for my discord bot but keep getting this error:
discord.errors.Forbidden: 403 Forbidden (error code: 50013)
async def on_member_join(member):
Ok. I search many things to delete over than 99 messages. But I cannot make it. I downed limit 99 to 5 because of test.
My code is
What is wrong?
Command is " !clear (amount) "
start1: while ...
I was making a discord music bot and already managed to integrate the youtube-search module into the bot. I followed some ...