diff options
author | 2020-10-07 20:06:06 +0100 | |
---|---|---|
committer | 2020-10-07 20:06:06 +0100 | |
commit | 64b70160d63d28b1b2b2215cf484a825ca516160 (patch) | |
tree | cd993a8cab5316899d8142675d5d5ff26d6cddbb | |
parent | Changed 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.py | 3 |
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 = [] |