mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 20:55:16 +00:00
11 lines
No EOL
694 B
JavaScript
11 lines
No EOL
694 B
JavaScript
|
|
module.exports = async (client, interaction, args) => {
|
|
|
|
if (!interaction.member.voice.channel) return client.errNormal({ error: `You're not in a voice channel!`, type: 'editreply' }, interaction);
|
|
|
|
if (interaction.guild.members.me.voice.channel && interaction.member.voice.channel.id !== interaction.guild.members.me.voice.channel.id) return client.errNormal({ error: `You are not in the same voice channel!`, type: 'editreply' }, interaction);
|
|
|
|
client.soundboard(interaction.guild.id, interaction, "https://www.myinstants.com/media/sounds/untitled_1071.mp3");
|
|
|
|
client.succNormal({ text: "Soundboard started! Playing **to be continued**", type: 'editreply' }, interaction);
|
|
}; |