Polarcraft/webv2/types/global.d.ts
Xeovalyte 9510e8a407
All checks were successful
Build and Deploy / Deploy Web (push) Successful in 1m1s
Build and Deploy / Deploy Discord Bot (push) Successful in 42s
feat: Added team creation, closes #22
2023-06-06 14:29:05 +02:00

44 lines
728 B
TypeScript

import { Document } from 'mongoose'
export {}
declare global {
interface IUser extends Document {
_id: string,
username: string,
usernameType: string,
discord: {
id: string,
username: string,
avatarHash: string
},
minecraft?: {
uuid: string,
username: string
},
teamInvites: string[],
role: {
admin: boolean,
moderator: boolean,
},
teamId: string,
accessToken?: string
}
interface IWhitelist {
_id: string,
uuid: string,
connected: boolean,
code: string
}
interface ITeam {
_id: string,
name: string,
color: string,
amount: number,
textChannelId: string,
voiceChannelId: string
}
}