fix: Changed command logic to be in property execute instead of run

This commit is contained in:
Marius Begby committed 2023-07-18 11:10:35 +02:00
1 parent 6fdd943e56
commit 2d0df79dac
15 files changed
+18 -15

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ module.exports = {
.setDescription('Add a track or playlist to the queue by searching or url.')
.setDMPermission(false)
.addStringOption((option) => option.setName('query').setDescription('Search query or URL.').setRequired(true)),
run: async ({ interaction }) => {
execute: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return await interaction.editReply({
embeds: [