Skip to content

Commit 562214e

Browse files
WeirdllamasTaaku18
andauthored
Update cogs/modmail.py
Co-Authored-By: Taku 3 Animals <45324516+Taaku18@users.noreply.github.com>
1 parent 8c5ff58 commit 562214e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cogs/modmail.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ async def move(self, ctx, *, category: discord.CategoryChannel):
294294
"""
295295
thread = ctx.thread
296296
await thread.channel.edit(category=category, sync_permissions=True)
297-
if self.bot.config["thread_move_notify"]:
297+
try:
298+
thread_move_notify = strtobool(self.config["thread_move_notify"])
299+
except ValueError:
300+
thread_move_notify = self.config.remove("thread_move_notify")
301+
if thread_move_notify:
298302
embed = discord.Embed(
299303
title="Thread Moved",
300304
description=self.bot.config["thread_move_response"],

0 commit comments

Comments
 (0)