Skip to content

Commit

Permalink
Set message to None if thread is closing silently
Browse files Browse the repository at this point in the history
  • Loading branch information
kyb3r committed Jan 21, 2019
1 parent d392195 commit 5558793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def _close(self, closer, silent=False, delete_channel=True,
log_data = await self.bot.modmail_api.post_log(self.channel.id, {
'open': False,
'closed_at': str(datetime.datetime.utcnow()),
'close_message': message,
'close_message': message if not silent else None,
'closer': {
'id': str(closer.id),
'name': closer.name,
Expand Down

0 comments on commit 5558793

Please sign in to comment.