avoid saying to check DMs when an error isn't DMed

This commit is contained in:
Infinidoge 2025-09-11 14:17:55 -04:00
parent b7ca0b9a3e
commit 0966dc2ca3
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -31,7 +31,7 @@ class KeywordError(Exception):
async def send(self, ctx):
if self.msg:
await ctx.send(self.msg + " (check DMs)")
await ctx.send(self.msg + (" (check DMs)" if self.dm_msg else ""))
if self.dm_msg:
await ctx.author.send(self.dm_msg)