With the lock command, you can lock a channel so nobody can type there. You can also add an optional reason and time limit.
Cooldown: 5 seconds
Arguments
The channel to lock.
The duration to lock the channel (e.g. 30m, 2h). Defaults to no time limit.
The reason for locking the channel.
Example
/lock channel:#general limit:2h reason:This channel will be locked for two hours
e.g. @Dyno lock #general 2h This channel will be locked for two hours
If users can still speak in the locked channel, please read this for more information.