summary refs log tree commit diff
path: root/util/src/dtos/UserDTO.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-19 18:59:54 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-19 18:59:54 +0200
commite6839719a6e40bae0f75286bf677e787b5ec840c (patch)
tree6f67e1b10fdce54583b261df51fe5c2eb88a847b /util/src/dtos/UserDTO.ts
parent:bug: fix bundle debug (diff)
parentMerge pull request #377 from TheArcaneBrony/request-logging (diff)
downloadserver-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.ts17
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