Skip to content

Commit c9ca807

Browse files
committed
Fix Discord context bot-flag type mismatch.
Normalizes the message author bot flag to a strict boolean so TypeScript build passes in production.
1 parent 34958bc commit c9ca807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/lib/discord/review-bot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function registerHandlers(
132132
recentMessage.author.userName ||
133133
recentMessage.author.userId,
134134
text,
135-
isBot: recentMessage.author.isBot,
135+
isBot: recentMessage.author.isBot === true,
136136
});
137137
if (recentMessages.length >= 30) {
138138
break;

0 commit comments

Comments
 (0)