Added a check to make sure the reply message is sent in an existing channel.

This commit is contained in:
kku 2024-12-16 19:54:53 +01:00
parent 454ce2b6fb
commit 53d5827ed9

View File

@ -196,6 +196,7 @@ class CustomChannels(commands.Cog):
await holo_user_ctx.set("customchannel", None) await holo_user_ctx.set("customchannel", None)
if ctx.channel_id != custom_channel.id:
await ctx.respond( await ctx.respond(
embed=Embed( embed=Embed(
title="Канал знищено", title="Канал знищено",