This commit is contained in:
Ecolipsy 2021-12-02 20:57:04 +01:00
parent 71f9be9f42
commit 5272ed1af2

View file

@ -135,6 +135,7 @@ client.on("interactionCreate", (int) => {
} }
int.reply({embeds: [embed], components: [msgRow]}); int.reply({embeds: [embed], components: [msgRow]});
} else if(int.commandName == "send"){ } else if(int.commandName == "send"){
console.log("Send!");
if(!allowed.includes(int.user.id)) return int.reply({content: "You don't have permissions to use this command.", ephemeral: true}); if(!allowed.includes(int.user.id)) return int.reply({content: "You don't have permissions to use this command.", ephemeral: true});
var channel = int.options.getChannel("channel") || int.channel; var channel = int.options.getChannel("channel") || int.channel;
var message = int.options.getString("message"); var message = int.options.getString("message");