discord.py Dictionary of all roles
Advertisements I’d like to create a dictionary with all roles of a guild for easier use in development: roles_dictionary = {‘role1′: discord.utils.get(guild.roles, name=’role1′) } etc. I’d like to always be able to access any role using: roles_dictionary[‘role1′] I already tried putting it into the on_ready() function, however it seems as if you shouldn’t do stuff… Read More discord.py Dictionary of all roles