Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

channel unlock command in discord.py

#unlock command
@bot.command(help=" Use this command to lock a channel")
@commands.has_permissions(manage_channels=True)
async def unlock(ctx):
    await ctx.channel.set_permissions(ctx.guild.default_role,send_messages=True)
    await ctx.send('**<:vf:947194381172084767> Channel has been unlocked**')
    await ctx.channel.purge(limit=2)
Source by github.com #
 
PREVIOUS NEXT
Tagged: #channel #unlock #command
ADD COMMENT
Topic
Name
6+5 =