Skip to content

Tag: discord.py

mention user from string(name#discriminator) discord.py

I have an user in str format, for example: I want to convert it into a member to be able to do: I tried: and: both make member NoneType, the name and discriminator are fine. Answer If you have both the username and discriminator, the best way to get that member would be like this: ALSO: Make sure you have

discord.py – Get channel permissions of user

I am trying to create a command that lists the permissions that the user has in the current channel. I have tried using a function that adds permissions to a list and calling it in the command. Unfortunately, this command sends all of the permissions that a member could possibly have, rather than the permissi…

discord.py: too big variable?

I’m very new to python and programming in general, and I’m looking to make a discord bot that has a lot of hand-written chat lines to randomly pick from and send back to the user. Making a really huge variable full of a list of sentences seems like a bad idea. Is there a way that I can store the

discord.py avatar command bringing up error

I am running an avatar command which worked before, but every time I try to run it now it gives me the error : I feel I am doing something dumb, but what is going wrong? Here is the code: Thanks in advance for the help. Answer If you’ve updated your discord.py then avatar_url got replaced with avatar.ur…