Fix
This commit is contained in:
parent
5272ed1af2
commit
65b8880e24
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -141,9 +141,9 @@ client.on("interactionCreate", (int) => {
|
||||||
var message = int.options.getString("message");
|
var message = int.options.getString("message");
|
||||||
int.deferReply();
|
int.deferReply();
|
||||||
channel.send(message).then(msg => {
|
channel.send(message).then(msg => {
|
||||||
int.reply({content: "Successfully sent message.", ephemeral: true});
|
int.editReply({content: "Successfully sent message.", ephemeral: true});
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
int.reply({content: "An error has occured, check console."});
|
int.editReply({content: "An error has occured, check console."});
|
||||||
console.log(e);
|
console.log(e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue