diff options
| author | 2018-11-25 01:42:55 +0100 | |
|---|---|---|
| committer | 2018-11-25 00:42:55 +0000 | |
| commit | 91be26a1a9ebb5dab07f38b9f6c9ab65b2da672e (patch) | |
| tree | b3a6959822cdd25ba21254fecc0733ef035812bc /bot/cogs/moderation.py | |
| parent | Remove duration from JSON payload when not specified (#204) (diff) | |
Restore superstar nickname after member leaves and rejoins (#207)
* Solve #205 by restoring superstar nicks on member join; prettier modlog
* Switch footer to title in Infraction Info DM to get clickable links
* Fix exceptions from message edit events in DMs
* Improve readability as requested (multiline import and if statements)
* Change continuation indents, as requested....
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/moderation.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index 71654ee1c..6e958b912 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -29,6 +29,7 @@ INFRACTION_ICONS = { "Kick": Icons.sign_out, "Ban": Icons.user_ban } +RULES_URL = "https://pythondiscord.com/about/rules" def proxy_user(user_id: str) -> Object: @@ -1088,8 +1089,9 @@ class Moderation(Scheduler): ) icon_url = INFRACTION_ICONS.get(infr_type, Icons.token_removed) - embed.set_author(name="Infraction Information", icon_url=icon_url) - embed.set_footer(text=f"Please review our rules over at https://pythondiscord.com/about/rules") + embed.set_author(name="Infraction Information", icon_url=icon_url, url=RULES_URL) + embed.title = f"Please review our rules over at {RULES_URL}" + embed.url = RULES_URL await self.send_private_embed(user, embed) |