N
N
NOOns2020-12-28 11:55:41
Python
NOOns, 2020-12-28 11:55:41

How to get discord guild avatar and name via discord.py module?

I want to create an embed where it will be respected:
embed.set_author(name=(Guild Name), icon_url=(Guild Avatar))
But I didn't find an attribute for guild for this. Is it possible to see the title and avatar/change it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-12-28
@NOOns

The guild name is, oddly enough, in the name field
https://discordpy.readthedocs.io/en/latest/api.htm...
Server icon, also in icon
https://discordpy.readthedocs.io/en/ latest/api.htm...
Url icons same in icon_url
https://discordpy.readthedocs.io/en/latest/api.htm...
Editing via edit
https://discordpy.readthedocs.io/en/latest/ api.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question