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

[Mod] add role mentions to userinfo and reverse role sorting #2759

Merged
merged 3 commits into from
Jun 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions redbot/cogs/mod/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def userinfo(self, ctx, *, user: discord.Member = None):
special_date = datetime(2016, 1, 10, 6, 8, 4, 443000)
is_special = user.id == 96130341705637888 and guild.id == 133049272517001216

roles = sorted(user.roles)[1:]
roles = user.roles[-1:0:-1]
names, nicks = await self.get_names_and_nicks(user)

joined_at = user.joined_at if not is_special else special_date
Expand Down Expand Up @@ -125,7 +125,7 @@ async def userinfo(self, ctx, *, user: discord.Member = None):
activity = _("Watching {}").format(user.activity.name)

if roles:
roles = ", ".join([x.name for x in roles])
roles = ", ".join([x.mention for x in roles])
else:
roles = None

Expand Down