mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Mod] add role mentions to userinfo and reverse role sorting (#2759)
* add role mentions to userinfo and reverse role sorting This small PR adds the role mentions to userinfo and reverses the sorting so that the top most role of a user is at the left of the embed * Remove sorting as it's handled by d.py
This commit is contained in:
parent
870b615364
commit
52f5d5cd6a
@ -91,7 +91,7 @@ class ModInfo(MixinMeta):
|
||||
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
|
||||
@ -125,7 +125,7 @@ class ModInfo(MixinMeta):
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user