cogs/welcome.py
async def on_guild_channel_delete(self, channel):
        """Update database if welcome channel is deleted."""
        db.guilds.update_one(
            {"_id": channel.guild.id, "wc": channel.id},
            {"$set": {"wc": None}}
        )
Update database if welcome channel is deleted.
Update database if welcome channel is deleted.
Update database if welcome channel is deleted .
async def on_guild_channel_delete(self, channel):
        db.guilds.update_one(
            {"_id": channel.guild.id, "wc": channel.id},
            {"$set": {"wc": None}}
        )
async def on_guild_channel_delete ( self , channel ) : db . guilds . update_one ( { "_id" : channel . guild . id , "wc" : channel . id } , { "$set" : { "wc" : None } } )
Update database if welcome channel is deleted.
Update database if welcome channel is deleted .
"""Update database if welcome channel is deleted."""
self
channel