It locks the channel where people write the command, so no one can send messages except the administrator.
Code
$nomention
$suppressErrors
$onlyBotPerms[managechannels;In order for this command to work, I need to have 'Manage Channels' privilege.]
$onlyPerms[managechannels;You must have `Manage Channels` permission to use this command.]
$modifyChannelPerms[$channelID;-sendmessages;$guildID]
$title[Channel Successfully Locked ✅]
$color[00FF00]
$description[Channel Locked by $username.]