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
Tag: discord.py
Await issue for message in DM if the user sent a command in a channel [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 tried so me code and didn’t work for waiting messages so I wanna know how to wait for message in DM if the user
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
How I can get channel members (Discord.py)
I need to get Only users of my channel, but I have not found a function that returns the desired result. There is a function to get all users of the bot: get_all_members(), but she’s not doing exactly what I need. I want get user nicknames. Help me find a solution to my problem. Answer Hm… I had this issue
Discord.py on_member_join not working, no error message
I am trying to make a discord bot with the Discord.py library. The commands with the @client.command() decorator work fine for me, but none of the event ones that I tried work. I would expect this to output to the terminal or in the channel id I put in, but nothing appears, not even an error message. *I used client.
How to check if member has role discord.py
I want to make a “warn” command and I want to check if member has role. My code: Error: Answer The issue as InsertChessyLine it should be ctx.guild.roles instead of ctx.message.server.roles
How do I get the most recent call of a command, and save it in a function? [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’ve been messing with bots for a couple days now, and I’m trying to get the name of the user that called a certain command,
Python Discord Bot – python clear_reaction() clears all reactions instead of a specific one
I am making a Discord Bot using python and I want a message to have only certain reactions and on adding a reaction I want the code to delete every unwanted one. I really want it to verify if there is no other reactions to remove, not only the one that has just been added. My problem, as said in
Get person who invited the discord bot discord.py
Is there any way to get the person who invited the bot to the server? My point is to dm that person to tell her what to do so things go smoothly and I don’t want the bot to just write it in a random text channel that everybody could see. Thanks in advance Answer There isn’t any way yet
Reading a text file and splitting into separate words in python3.8, using discord.py
I’m trying to make a discord bot using python 3.8 and discord.py in pycharm. The bot’s function is to read a text file and write out each word as a separate message and send it into a discord server. Now I have the text file and it can print out the words but it can’t do it separately. Below is