avoid saying to check DMs when an error isn't DMed
This commit is contained in:
parent
b7ca0b9a3e
commit
0966dc2ca3
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class KeywordError(Exception):
|
||||||
|
|
||||||
async def send(self, ctx):
|
async def send(self, ctx):
|
||||||
if self.msg:
|
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:
|
if self.dm_msg:
|
||||||
await ctx.author.send(self.dm_msg)
|
await ctx.author.send(self.dm_msg)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue