new getCurrentUserMention()

Co-authored-by: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com>
This commit is contained in:
ant0n 2023-11-11 17:51:06 +00:00 committed by GitHub
parent f71bceff12
commit 66b49a25ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,6 @@ export default definePlugin({
},
getCurrentUserMention() {
const currentUser = UserStore.getCurrentUser();
return { id: currentUser.id, username: currentUser.username, discriminator: currentUser.discriminator };
return UserStore.getCurrentUser() as unknown as UserJSON;
}
});