mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 06:27:27 +00:00
Fix error messages in DMs
This commit is contained in:
parent
f1278b5e3f
commit
ffc14b2897
1 changed files with 1 additions and 1 deletions
|
@ -27,6 +27,6 @@ def error(event):
|
||||||
exception = event.exception.__cause__ or event.exception
|
exception = event.exception.__cause__ or event.exception
|
||||||
|
|
||||||
return (
|
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}```**"
|
f"```❗ {type(exception).__name__}: {exception}```**"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue