aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/petpet.ts
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-28 21:59:22 +0200
committerV <vendicated@riseup.net>2023-05-28 22:02:47 +0200
commit6300198a5463ab38da81906bda634addf4c8a369 (patch)
tree72f6f8fb47e6cc42b8b76c6e7ffe6f6b9e4ea311 /src/plugins/petpet.ts
parent458c7ed4c5035e125a497c192e71737f946ff302 (diff)
downloadVencord-6300198a5463ab38da81906bda634addf4c8a369.tar.gz
Vencord-6300198a5463ab38da81906bda634addf4c8a369.tar.bz2
Vencord-6300198a5463ab38da81906bda634addf4c8a369.zip
MessageLinkEmbeds: Fix niche unclaimed account bug
This plugin fires MESSAGE_UPDATE events for messages containing message links (to rerender them). If the updated message is an interaction, it contains message.interaction.user. If the one who ran the command is you, message.interaction.user will be you and the email in this data is always set to null. Discord seems to update the local user data with this user. So essentially, in the above described edge case it would update the current user to have no email (only locally, in memory. There is 0 risk for your account, it was just a temporary visual bug) which would cause the unclaimed account banner to appear. This commit fixes this by simply omitting the interaction field from the MESSAGE_UPDATE event
Diffstat (limited to 'src/plugins/petpet.ts')
0 files changed, 0 insertions, 0 deletions