summary refs log tree commit diff
path: root/util/src/dtos/UserDTO.ts
blob: ee2752a427c41772997870088850a6a371bc114d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
	}
}