aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2020-10-07 20:06:06 +0100
committerGravatar wookie184 <[email protected]>2020-10-07 20:06:06 +0100
commit64b70160d63d28b1b2b2215cf484a825ca516160 (patch)
treecd993a8cab5316899d8142675d5d5ff26d6cddbb
parentChanged dm_relay to include user id in webhook when sending attachments. (diff)
made sure to use sub_clyde on username passed to send_attachments
-rw-r--r--bot/utils/messages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/utils/messages.py b/bot/utils/messages.py
index 9fd571a20..b6c7cab50 100644
--- a/bot/utils/messages.py
+++ b/bot/utils/messages.py
@@ -68,10 +68,11 @@ async def send_attachments(
embed which links to them. Extra kwargs will be passed to send() when sending the attachment.
"""
webhook_send_kwargs = {
- 'username': sub_clyde(message.author.display_name),
+ 'username': message.author.display_name,
'avatar_url': message.author.avatar_url,
}
webhook_send_kwargs.update(kwargs)
+ webhook_send_kwargs['username'] = sub_clyde(webhook_send_kwargs['username'])
large = []
urls = []