Fix
This commit is contained in:
parent
5272ed1af2
commit
65b8880e24
4
index.js
4
index.js
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue