Skip to content

Tag: discord.py

Discord.py bot ignoring channel.message.id

I have a bot that every 1 to 12 hours sends a random message into a specific channel (the channel that the command !random is used in). A certain handful of these message are yes/no questions, and I want to make it that the bot will respond if somebody says yes/no. The code works, the issue is I want the

discord.py’s on_member_leave event isn’t working

Making a bot that logs basic events, like on_member_join and on_message has been working, but when I implemented the on_member_leave, that event hasn’t been working. I have previously turned on intents. I’ve tried adding, It still hasn’t been working, what am I doing wrong, what are some thi…

Discord.py Issue

Whenever I run the following code for a discord bot after I type a message so that the bot sends the link to the image I get the error: I am pretty new to coding, so sorry if it’s something super simple! Answer ‘Messageable.send’ was never awaited tells you what went wrong here. The library …

How to send message in a Discord Thread?

So I need to create and send messages in discord thread. I have been able to create threads but unable to send message in them. I am using Discord.py library (v2.0 supports thread). This is what I am using to create thread. I have no lead on how to send message in it. Thanks. Answer create_thread() returns th…