Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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)
Source by github.com #
 
PREVIOUS NEXT
Tagged: #channel #hide #command
ADD COMMENT
Topic
Name
1+5 =