Discord-Bot/src/commands/soundboard/tobecontinued.js
2022-12-12 10:43:02 +01:00

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);
};