Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

multiple channel deleteing command in discord.py

#channel delete
@bot.command(aliases=['chd'])
@commands.has_permissions(manage_channels=True)
async def chdel(ctx, *channels: discord.TextChannel):
    for ch in channels:
        await ch.delete()
        await ctx.send(f'**<:vf:947194381172084767>`{ch.name}` has been deleted**')
        await sleep(1)
Source by github.com #
 
PREVIOUS NEXT
Tagged: #multiple #channel #deleteing #command
ADD COMMENT
Topic
Name
5+6 =