Add special case for errors in DMs
This commit is contained in:
parent
52be946404
commit
9fe0c0a95a
@ -131,7 +131,7 @@ async def log_error_in_channel(ctx: CommandContext):
|
|||||||
|
|
||||||
embed.set_footer(text="Sender: {}#{} | Server: {} | Channel: {}".format(
|
embed.set_footer(text="Sender: {}#{} | Server: {} | Channel: {}".format(
|
||||||
ctx.message.author.name, ctx.message.author.discriminator,
|
ctx.message.author.name, ctx.message.author.discriminator,
|
||||||
ctx.message.server.id,
|
ctx.message.server.id if ctx.message.server else "(DMs)",
|
||||||
ctx.message.channel.id
|
ctx.message.channel.id
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user