Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

channel hide command in discord.py

#hide channel
@bot.command(help=" Use this command to hide a channel")
@commands.has_permissions(manage_channels=True)
async def hide(ctx):
    await ctx.channel.set_permissions(ctx.guild.default_role,view_channel=False)
    await ctx.send('**<:vf:947194381172084767>This channel is hidden from everyone**')
    await ctx.channel.purge(limit=2)
Comment

PREVIOUS NEXT
Code Example
Python :: Login script using Python and SQLite 
Python :: random pick between given things python 
Python :: how to find uncommon records of two dataframes 
Python :: python for loop increment 
Python :: __lt__ 
Python :: push in python 
Python :: python any in list 
Python :: xlsb file in pandas 
Python :: python tkinter dynamic toggle button 
Python :: getting size of list in python 
Python :: how to find and remove certain characters from text string in python 
Python :: python between inheritance and composition 
Python :: how to see directory from os module 
Python :: add icon to exe file 
Python :: pandas series remove element by index 
Python :: df concat multiple columns 
Python :: how to make a superuser in django 
Python :: string to list python 
Python :: google assistant in windows 10 
Python :: split by backslash python 
Python :: how to define variable in python 
Python :: py one line function 
Python :: how to show installed tkinter fonts 
Python :: check word in list 
Python :: pandas split tuple column 
Python :: tkinter stringvar not working 
Python :: import python file from another directory 
Python :: snapchat api in python 
Python :: web socket in python 
Python :: sumof product 1 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =