summary refs log tree commit diff
path: root/src/util/dtos/UserDTO.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/dtos/UserDTO.ts')
-rw-r--r--src/util/dtos/UserDTO.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts
new file mode 100644
index 00000000..ee2752a4
--- /dev/null
+++ b/src/util/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;
+	}
+}