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:
Tag: discord
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
How to make an argument on discord.py to be the last words
I am making a discord bot that one of the features is that you can use a command to make the bot embed thing into chat. This is the code: But when I try to embed more than one words it only embeds the last one. Why does it do that? Answer You need to add a * before the
issues with discord.py “if channel.id ==”
I’m trying to make a bot that takes images from channel A and posts them to channel B when someone reacts to it. I have everything down so far except that it’ll also post pictures in channel B if someone reacts to one in channel C. I’m trying to use “if channel.id ==” but so far when I introduce that
how to get all members of a guild in discord.py?
So i want to get all members on the discord guild/server printed out in the console but i only get the bot as member. I already activated server member intent on the discord developer portal but it didn’t help. Thanks in advance here is the code i use: Answer The reason you are only getting bot, is because you are
How to make my bot forward DMs sent to it to a channel
So, I’ve got a bot that can send a user a DM via a very simple command. All I do is “!DM @user message” and it sends them the message. However, people sometimes try responding to the bot in DMs with their questions, but the bot does nothing with that, and I cannot see their replies. Would there be a
How can bots detect spam lines or multiple lines of useless text? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago. Improve this question I am trying to improve my moderation side of my Discord.py bot. I would like users not to send multiple lines
Where to find discord.py bot in self attributes in order to assign roles
I am the owner of a Discord server that doesn’t have too many people so I want them to introduce themselves so I can keep track of who’s who. Upon joining, members only have access to a #introductions channel. When they type in their name, they are given the Member role. There isn’t any discord.py function that does this, so
How do I get a list of all the roles my discord bot has?
I am trying to get a list of all the roles my bot has from top to bottom so I can get the highest role’s color. Answer Not sure what you mean by the “highest role’s color”, also your post is missing your code. One way to get the roles the bot has in the guild (via a command) is
Is there a way to mark an Image link as a spoiler – Discord bot
Im very new to coding and i want to make a bot that sends an image link, marked as a spoiler. I got this from a different stack overflow question The problem is i have no idea where to put the image link! (If you’re wondering why i didn’t ask in a comment on that post, its because i don’t