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