We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exemplo de possivel solução atribuindo apenas as pemissões sendo falsas
vol_permission = discord.Permissions.all() # Roles from here https://discordpy.readthedocs.io/en/stable/api.html?highlight=discord%20permissions#discord.Permissions.view_guild_insights # Manage roles manage_roles = [ "manage_channels", "manage_emojis", "manage_guild", "manage_messages", "manage_nicknames", "manage_permissions", "manage_roles", "manage_webhooks", ] for role in manage_roles: setattr(vol_permission, role, False)
Motivo: Não é permitido atribuir None a uma role
None
pybr2021-discord-bot/pybr2021/bot.py
Line 53 in e68023e
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Exemplo de possivel solução atribuindo apenas as pemissões sendo falsas
Motivo: Não é permitido atribuir
None
a uma rolepybr2021-discord-bot/pybr2021/bot.py
Line 53 in e68023e
The text was updated successfully, but these errors were encountered: