Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: Python Create a nonlocal variable 
Python :: python asyncio.run() 
Python :: Python NumPy asarray Function Syntax 
Python :: indentation in python 
Python :: django generate openapi schema command line 
Python :: Python Regex Backslash “” 
Python :: for loops python 
Python :: python import 
Python :: plot multiplr linear regression model python 
Python :: Python range() backward 
Python :: why pytest return No ModuleError 
Python :: function in python 
Python :: python file save 
Python :: Python Read the CSV file 
Python :: how to replace a string in python 
Python :: import permutations 
Python :: how to get text of a tag in selenium python 
Python :: dtype function with example 
Python :: python close a socket 
Python :: create jwt token in django 
Python :: python set to list 
Python :: list functions 
Python :: how stract avery .jpg string in a website python 
Python :: how to hide button in tkinter 
Python :: dict ;get a key of a value 
Python :: instalar sympy en thonny 
Python :: pygame moving shape 
Python :: django form label in template 
Python :: how to fit the whole text beside checkbox in ipywidgets 
Python :: python email subject decode 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =