Skip to content

Commit

Permalink
Fix discord user type (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlfmt authored Oct 28, 2023
1 parent 777175d commit 1b3efaf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .auri/$10bcw0d7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
package: "@lucia-auth/oauth"
type: "patch"
---
Fix `DiscordUser`
12 changes: 6 additions & 6 deletions documentation/content/oauth/providers/discord.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ type DiscordUser = {
id: string;
username: string;
discriminator: string;
global_name?: string;
avatar: string;
global_name: string | null;
avatar: string | null;
bot?: boolean;
system?: boolean;
mfa_enabled?: boolean;
verified?: boolean;
email?: string;
email?: string | null;
flags?: number;
banner?: string;
accent_color?: number;
banner?: string | null;
accent_color?: number | null;
premium_type?: number;
public_flags?: number;
locale?: string;
avatar_decoration?: string;
avatar_decoration?: string | null;
};
```

Expand Down
12 changes: 6 additions & 6 deletions packages/oauth/src/providers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ export type DiscordUser = {
id: string;
username: string;
discriminator: string;
global_name?: string;
avatar: string;
global_name: string | null;
avatar: string | null;
bot?: boolean;
system?: boolean;
mfa_enabled?: boolean;
verified?: boolean;
email?: string;
email?: string | null;
flags?: number;
banner?: string;
accent_color?: number;
banner?: string | null;
accent_color?: number | null;
premium_type?: number;
public_flags?: number;
locale?: string;
avatar_decoration?: string;
avatar_decoration?: string | null;
};

0 comments on commit 1b3efaf

Please sign in to comment.