Skip to content

Commit

Permalink
fix: commands in help desk threads (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler authored Dec 12, 2024
1 parent 79f3615 commit c6a48eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/discord/help-desk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@ export class DiscordHelpDesk {
return;
}

// TODO: make this less ugly by storing the id of our message in the DB
if (
!reaction.message.content?.includes(
`(an item can be marked as "complete" by reacting with the appropriate number)`,
)
) {
return;
}

const message = this.buildWelcomeMessage(
channel.ownerId ?? '',
reaction.message.reactions.cache.map((reaction) => reaction.count > 1),
Expand Down

0 comments on commit c6a48eb

Please sign in to comment.