How can I get a voice connection object from an interaction object?
Pretty straight forward question in the title,
I set up my Bot as per the structure in the docs with the separate 'event', 'command' folders, I have created a new command called join which makes the bot join the channel, and also houses the "joinVoiceChannel" object. But in a separate command of 'play' I'm not sure how I can get the 'voice connection' object in it so that I can create an audio stream?
I set up my Bot as per the structure in the docs with the separate 'event', 'command' folders, I have created a new command called join which makes the bot join the channel, and also houses the "joinVoiceChannel" object. But in a separate command of 'play' I'm not sure how I can get the 'voice connection' object in it so that I can create an audio stream?