Skip to content

Commit b7909f2

Browse files
committed
Nonetype
1 parent 55efe08 commit b7909f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def setup(self, ctx):
148148
@commands.command(name='close')
149149
@commands.has_permissions(manage_guild=True)
150150
async def _close(self, ctx):
151-
if 'User ID:' not in ctx.channel.topic:
151+
if 'User ID:' not in str(ctx.channel.topic):
152152
return await ctx.send('This is not a modmail thread.')
153153
user_id = int(ctx.channel.topic.split(': ')[1])
154154
user = self.get_user(user_id)

0 commit comments

Comments
 (0)