From 9fe0c0a95aaf349d6b12256d186534aca04eeaa5 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 7 Sep 2018 21:30:47 +0200 Subject: [PATCH] Add special case for errors in DMs --- src/pluralkit/bot/commands/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/__init__.py b/src/pluralkit/bot/commands/__init__.py index 646b2611..27f0a114 100644 --- a/src/pluralkit/bot/commands/__init__.py +++ b/src/pluralkit/bot/commands/__init__.py @@ -131,7 +131,7 @@ async def log_error_in_channel(ctx: CommandContext): embed.set_footer(text="Sender: {}#{} | Server: {} | Channel: {}".format( 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 ))