'How to make joining a voice channel by numeric code?

I have a question, please tell me how to implement slash command as in the screenshot. (I mean /join number). I will be extremely grateful. Thanks in advance for your reply.

p.s i translated the screenshot in google translator for better understanding: Screenshot link



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source