Skip to content

Commit

Permalink
🐛 FIX: not sending message after resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
warengonzaga authored May 5, 2023
1 parent c8d9848 commit 201d303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ client.on('messageCreate', async (message) => {
let initialTags = [resolutionTag[0].id,...postTags];
let tags = [...new Set(initialTags)];

// check if the command has the prefix and includes "close"
// check if the command has the prefix and includes "resolve"
if (message.content.startsWith(config.command_prefix) && message.content.includes(config.command_resolve)) {
await message.delete(); // delete the commmand message

Expand All @@ -106,8 +106,8 @@ client.on('messageCreate', async (message) => {
// check if the post has fewer tags
if (postTags.length < 5) {

// send embed message before closing the post
message.channel.send({ embeds: [
// send embed message before resolving the post
await message.channel.send({ embeds: [
sendEmbedMessage(`${config.reminder_resolve}`)
],
content: `🔔 <@${message.channel.ownerId}>`
Expand Down

0 comments on commit 201d303

Please sign in to comment.