I am working on a code for a Discord bot for my server, and I'm currently stumped on a magic 8 ball feature, go figure. I'm trying to get it to check if there i
I am using the following code to figure out if there was an error. But I want to not run something if there was an error. I have tried to look it up and I could
So I've looked through the discord.js docs. I'm not too good at reading docs but is there a way to get the url of the message that initiated the command like: c
I was looking at asking for multiple optional parameters with discord.py, although I'm not sure how to do it. This is my example, although I'm pretty sure it's
I want to find the arguments of a cog/command to put it in the help command. for cog in client.cogs: if cog.lower() == input[0].lower():
EDIT: I solved it, I just simply looped the asyncio.sleep and set a variable for the cooldown in seconds. :) I'm new to discord.py and I just started developing
I handle a channelDelete event in my discord bot. My original intent was to do the following: Listen for when a channel is deleted Check to see if its type equa
I try to run this code below, but on_member_join is not working for me. async def on_member_join(self, member): guild = member.gui
im pretty new to javascript and i tried to get and modify a script that delete link if its not in the list, i tried multiple modification for hours but none suc
Basically i am trying to create a userinfo command for discord.js, i followed some tutorials and i seemed to make one, but i get this error saying: TypeError: C
I just mada a discord bot with hikari that for now listens to a whole server, and if someone types $shares https://tiktok.com/@xxx/2938923 It runs a script, th
(NOTE: this first section kinda just gives context, not too relevant to the message-receive thing, but again, it sets up some context that might help) So, I kno
i'm trying to give top.gg voters role in my server but there's so many thing happened got me confused and i can't find any solution for it. full source code : h
I'm trying to have my bot simply send a slash command to a specific discord channel. The command would be read by another bot and executed as needed. Is this po
I've just started learn python and my discord bot won't go online. it just said " Process exit with exit code 0". And there's no error with the code. here's my
I am trying to set the activity of my Discord bot as a "game" however the examples I've found online haven't helped at all. client.user.setActivity("what the bo
I am trying to code a bot for a game idea my friends and I have. The command I'm working on is the score adjuster. Obviously though, I only want moderators to h
Im making a discord python bot using repl's database function and i cant figure out how to delete only one value from the database. @client.command() async def
If an interaction (for example button click) is not replied, discord will display “interaction failed” in the client What they expect you to do: int
I'm using message.mentions.members.first() but the problem is that when I ping a user, the bot replies after a long delay. Video: https://gyazo.com/a8739e60bb86