removing non needed code
This commit is contained in:
parent
2924822a49
commit
8ce9e18656
@ -340,9 +340,7 @@ async function generateResponse(conversation, message) {
|
|||||||
|
|
||||||
// if the message object doesn't exist, create it
|
// if the message object doesn't exist, create it
|
||||||
if (!botMessage) {
|
if (!botMessage) {
|
||||||
(async () => {
|
botMessage = message.channel.send({ embeds: [embedData] });
|
||||||
botMessage = await message.channel.send({ embeds: [embedData] });
|
|
||||||
})();
|
|
||||||
} else {
|
} else {
|
||||||
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
|
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
|
||||||
}
|
}
|
||||||
@ -356,9 +354,7 @@ async function generateResponse(conversation, message) {
|
|||||||
|
|
||||||
// if the message object doesn't exist, create it
|
// if the message object doesn't exist, create it
|
||||||
if (!botMessage) {
|
if (!botMessage) {
|
||||||
(async () => {
|
botMessage = message.channel.send({ embeds: [embedData] });
|
||||||
botMessage = await message.channel.send({ embeds: [embedData] });
|
|
||||||
})();
|
|
||||||
} else {
|
} else {
|
||||||
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
|
botMessage.edit({ embeds: [embedData] }); // otherwise, update the message
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user