my bot returns this error:
TypeError: Cannot read properties of undefined (reading 'options')
im trying to make a discord music bot. my code is here:
execute: async ({ client, interaction }) => {
let url = interaction.options.getString("url")
client.distube.play(interaction.member.voice.channel, url, {
member: interaction.member,
textChannel: interaction.channel,
interaction
})
}
}
it errors on the line where it says "interaction.options.getString"