1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix error messages in DMs

This commit is contained in:
Myned 2022-02-22 17:30:25 -06:00
parent f1278b5e3f
commit ffc14b2897
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -27,6 +27,6 @@ def error(event):
exception = event.exception.__cause__ or event.exception
return (
f"**`{event.context.command.name}` in {event.context.get_channel().mention}"
f"**`{event.context.command.name}` in {event.context.get_channel().mention if event.context.guild_id else 'DMs'}"
f"```❗ {type(exception).__name__}: {exception}```**"
)