Discord Message Embed Reply

How do i make it so when i execute a command on the wrong channel it replies with an embed message

assuming you’re in the message event and using discord.js…

if(<Message>.channel.id !== “allowedChannelID”) return message.channel.send(new Discord.MessageEmbed().setTitle(‘no’));

…your other code

that’s the general idea. if the channel id is not “allowedchannel” then return a discord embed responding to it.