I want my discord bot to reply to the interaction based on what options are selected for example say i have a command called favourite pet depending on what option the user choose say the options where dog and cat if the user choose dog the bot would reply with ‘my favourite pet is dog too’ or say the user choose cat the bot would reply with ‘my favourite animal is cat too’ I cant manage to figure out how to do that
if (interaction.commandName === 'favourite-pet') {
if (interaction.options === 'dog') {
interaction.reply(`My favourtie pet is also a dog `)
}
if (interaction.options === 'cat') {
interaction.reply(`my favourite animal is also a cat `)
}
}