Update src/plugins/replyPingControl/index.ts

Co-authored-by: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com>
This commit is contained in:
ant0n 2023-11-11 17:52:31 +00:00 committed by GitHub
parent 5026f3f354
commit 5d2cefbceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ export default definePlugin({
}
},
isReplyToCurrentUser(message) {
isReplyToCurrentUser(message: MessageJSON) {
if (!message.message_reference) return false;
const repliedMessage = MessageStore.getMessage(message.channel_id, message.message_reference.message_id);
return repliedMessage && repliedMessage.author.id === UserStore.getCurrentUser().id;