This commit is contained in:
Ecolipsy 2021-12-02 20:58:48 +01:00
parent 5272ed1af2
commit 65b8880e24

View file

@ -141,9 +141,9 @@ client.on("interactionCreate", (int) => {
var message = int.options.getString("message");
int.deferReply();
channel.send(message).then(msg => {
int.reply({content: "Successfully sent message.", ephemeral: true});
int.editReply({content: "Successfully sent message.", ephemeral: true});
}).catch(e => {
int.reply({content: "An error has occured, check console."});
int.editReply({content: "An error has occured, check console."});
console.log(e);
});
}