mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
miniflare init
This commit is contained in:
parent
8c07ed3123
commit
688954a2e0
52 changed files with 898 additions and 25 deletions
|
@ -50,6 +50,7 @@ export enum UserGuildPermissions {
|
|||
User,
|
||||
Manager = 1 << 1,
|
||||
Admin = 1 << 2,
|
||||
RoleypolySupport = 1 << 3,
|
||||
}
|
||||
|
||||
export type GuildSlug = {
|
||||
|
|
|
@ -9,12 +9,19 @@ export type AuthTokenResponse = {
|
|||
scope: string;
|
||||
};
|
||||
|
||||
export enum SessionFlags {
|
||||
None = 0,
|
||||
IsRoot = 1 << 0,
|
||||
IsSupport = 1 << 1,
|
||||
}
|
||||
|
||||
export type SessionData = {
|
||||
/** sessionID is a KSUID */
|
||||
sessionID: string;
|
||||
tokens: AuthTokenResponse;
|
||||
user: DiscordUser;
|
||||
guilds: GuildSlug[];
|
||||
flags: SessionFlags;
|
||||
};
|
||||
|
||||
export type StateSession = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue