Skip to content

Commit

Permalink
[Patch] Update types for Discord (#1019)
Browse files Browse the repository at this point in the history
Co-authored-by: pilcrowOnPaper <[email protected]>
  • Loading branch information
Mateleo and pilcrowonpaper authored Aug 22, 2023
1 parent 3e6071b commit 8d5b29e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .auri/$ixlmonvt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "@lucia-auth/oauth”
type: "patch"
---

Add `global_name` and `avatar_decoration` fields in `DiscordUser` type
2 changes: 2 additions & 0 deletions documentation/content/oauth/providers/discord.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type DiscordUser = {
id: string;
username: string;
discriminator: string;
global_name?: string;
avatar: string;
bot?: boolean;
system?: boolean;
Expand All @@ -97,6 +98,7 @@ type DiscordUser = {
premium_type?: number;
public_flags?: number;
locale?: string;
avatar_decoration? :string;
};
```

Expand Down
2 changes: 2 additions & 0 deletions packages/oauth/src/providers/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export type DiscordUser = {
id: string;
username: string;
discriminator: string;
global_name?: string;
avatar: string;
bot?: boolean;
system?: boolean;
Expand All @@ -132,4 +133,5 @@ export type DiscordUser = {
premium_type?: number;
public_flags?: number;
locale?: string;
avatar_decoration?: string;
};

0 comments on commit 8d5b29e

Please sign in to comment.