aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-07-22 21:12:48 +0200
committerGravatar Leon Sandøy <[email protected]>2018-07-22 21:12:48 +0200
commitfa39f51e8abaead97f86ee3b3624da23d6f01f20 (patch)
tree2c0ce70075687d8d2329846eb18f041a6fadbba5
parentMoving constants into the yaml, fixing feedback from gdudes review. (diff)
Sending the users top_role
-rw-r--r--bot/cogs/clean.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/clean.py b/bot/cogs/clean.py
index fe9b14003..8df6d6e83 100644
--- a/bot/cogs/clean.py
+++ b/bot/cogs/clean.py
@@ -102,12 +102,14 @@ class Clean:
if delete and message.content or message.embeds:
content = message.content or message.embeds[0].description
author = f"{message.author.name}#{message.author.discriminator}"
+ role = message.author.top_role.name
# Store the message data
message_ids.append(message.id)
message_log.append({
"content": content,
"author": author,
+ "role": role.lower(),
"timestamp": message.created_at.strftime("%D %H:%M")
})