[V3] DM usage fixes (#1919)

* DM usage fixes

* ...

* ...

* ...

* ok, formatting...
This commit is contained in:
Michael H
2018-07-11 20:46:14 -04:00
committed by Kowlin
parent c0d01f32a6
commit 35149f8837
5 changed files with 15 additions and 8 deletions

View File

@@ -423,7 +423,7 @@ class Cleanup:
if author == self.bot.user:
to_delete.append(ctx.message)
if channel.name:
if ctx.guild:
channel_name = "channel " + channel.name
else:
channel_name = str(channel)