mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 09:33:03 -04:00
BadgeAPI: fix bugs in new profiles
This commit is contained in:
parent
e0d99e2f6c
commit
bc0d4a80ff
4 changed files with 75 additions and 20 deletions
|
@ -136,6 +136,8 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
getBadges(props: { userId: string; user?: User; guildId: string; }) {
|
||||
if (!props) return [];
|
||||
|
||||
try {
|
||||
props.userId ??= props.user?.id!;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue