Skip to content
New issue

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

Fix ?perms get command showing IDs instead of user or role mentions. #2927

Merged
merged 1 commit into from
Jan 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cogs/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,15 +1453,15 @@ def _get_perm(self, ctx, name, type_):
if perm == -1:
values.insert(0, "**everyone**")
continue
member = ctx.guild.get_member(perm)
member = ctx.guild.get_member(int(perm))
if member is not None:
values.append(member.mention)
continue
user = self.bot.get_user(perm)
user = self.bot.get_user(int(perm))
if user is not None:
values.append(user.mention)
continue
role = ctx.guild.get_role(perm)
role = ctx.guild.get_role(int(perm))
if role is not None:
values.append(role.mention)
else:
Expand Down