From 94c2cb010d1e3492758349e10d64fff99d0d3964 Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Wed, 29 Apr 2020 14:51:03 -0500 Subject: [PATCH] Missed one of the permission flag changes --- cogs/roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/roles.py b/cogs/roles.py index 2c742de..588749b 100644 --- a/cogs/roles.py +++ b/cogs/roles.py @@ -313,7 +313,7 @@ class Roles(commands.Cog): name = msg.content # Print a list of all the permissions available, then ask for which ones need to be active on this new role - all_perms = [p for p in dir(discord.Permissions) if isinstance(getattr(discord.Permissions, p), property)] + all_perms = list(discord.Permissions.VALID_FLAGS.keys()) fmt = "\n".join("{}) {}".format(i, perm) for i, perm in enumerate(all_perms)) await ctx.send("Sounds fancy! Here is a list of all the permissions available. Please respond with just " "the numbers, seperated by commas, of the permissions you want this role to have.\n"