diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-19 18:59:54 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-19 18:59:54 +0200 |
commit | e6839719a6e40bae0f75286bf677e787b5ec840c (patch) | |
tree | 6f67e1b10fdce54583b261df51fe5c2eb88a847b /util/src/dtos/UserDTO.ts | |
parent | :bug: fix bundle debug (diff) | |
parent | Merge pull request #377 from TheArcaneBrony/request-logging (diff) | |
download | server-e6839719a6e40bae0f75286bf677e787b5ec840c.tar.xz |
Merge branch 'master' of https://github.com/fosscord/fosscord-api
Diffstat (limited to 'util/src/dtos/UserDTO.ts')
-rw-r--r-- | util/src/dtos/UserDTO.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/util/src/dtos/UserDTO.ts b/util/src/dtos/UserDTO.ts new file mode 100644 index 00000000..f09b5f4e --- /dev/null +++ b/util/src/dtos/UserDTO.ts @@ -0,0 +1,17 @@ +import { User } from "../entities"; + +export class MinimalPublicUserDTO { + avatar?: string | null; + discriminator: string; + id: string; + public_flags: number; + username: string; + + constructor(user: User) { + this.avatar = user.avatar + this.discriminator = user.discriminator + this.id = user.id + this.public_flags = user.public_flags + this.username = user.username + } +} \ No newline at end of file |