I have reaction adds working perfectly fine. However, when I try to do reaction removes, nothing happens. No error messages or anything. This is the code I am using. Any help would be appreciated! Answer This event is only called when the message can be found in the internal message cache. Source: https://discordpy.readthedocs.io/en/latest/api.html#discord.on_reaction_remove Ensure you’re testing this on a message
Tag: discord.py
cannot instal discord module properly
while installing the module, i get this error and to double check when i try running with this code- the error was shown to me was this pls help out , so i need to spam so that my question get subbmitted and i dont get a error regarding that your post is mostly code , please add some more
on_member_join event discord.py
I maked an auto roles giving system with on_member_join event, it has worked until now, now it’s not sending messages to members, and not giving roles. Please help: Answer It sounds like you need intents. You’ll need to add this code above your definition of bot: Now, add the intents=intents parameter to your bot initialization underneath the intents bit: Make
How can I make a command in discord.py that can print the graph of a linear equation?
This is the code of my cog so far. The function “plotlineareq()” first makes a graph with 4 quadrants. Then it takes in the variables “a” (which is the gradient) and the variable “b” (which is the y-intercept). It creates a graph from these variables and saves it as foo.png. This part works separately. The other function is supposed to
discord.py How to make a roll dice command
Hello guys i’m coding a Discord bot in Python and i wanted to code a roll dice command. And i think im doing something wrong. Here is the code: When i type the command and select number 4 my command does works but when i try another number, for an example 6, it doesn’t work. What am i doing wrong?
missing 1 required positional argument: ‘loop’
I am struggling with incorporating threading into my tkinter program. This program is basically a discord bot that you are able to start, restart and other various things through a gui application. I realised that i need to incorporate threading into my tkinter gui in order to be able to use different buttons in the gui as the bot is
Creating Discord Bot method that moves messages as embeded message
I’ve been learning how to code a discord bot recently and I’ve hit a wall. I am wanting to create a method that allows me to move messages from one channel to another. I created a solution that works but not how I would like it to. Idealy I would want to just have the bot almost do a reddit
Commands not working after adding message.delete() function to certain keywords
The commands that used the bot prefix to run stopped working after adding a client event to delete messages containing certain keywords. I recently started coding so all help would be very appreciated. The discord.py documentation is kinda complicated so i cannot find what i am looking for. For more details please ask me in the comments. Answer You have
on_message event disables all the bot commands
I have an on_message event to prevent users with “Muted” role from sending messages: But with this event bot doesn’t react to all the commands. They are not working. Example command: Answer You have to use this: So, your event will look like this:
Bot doesn’t want to add roles on reaction [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I want bot to add role and remove another one for those who reacts on message. But when I am reacting to that message nothing