If you want to set a certain channel for sending a message when someone leaves your server, you can use the /leave channel command. It's a helpful feature to keep your members informed and makes your server more welcoming.
setting the leave message channel
Once the leave channel has been set, you should receive a confirmation:
The leave channel has been successfully set for your server