refactor progress

This commit is contained in:
Hampus Kraft
2026-02-17 12:22:36 +00:00
parent cb31608523
commit d5abd1a7e4
8257 changed files with 1190207 additions and 761040 deletions

View File

@@ -25,6 +25,7 @@ export interface DeveloperApplicationBot {
bio?: string | null;
token?: string;
banner?: string | null;
flags?: number;
}
export interface DeveloperApplication {
@@ -64,6 +65,7 @@ export class DeveloperApplicationRecord implements DeveloperApplication {
bio: application.bot.bio ?? null,
token: application.bot.token,
banner: application.bot.banner ?? null,
flags: application.bot.flags,
};
}
}
@@ -89,7 +91,12 @@ export class DeveloperApplicationRecord implements DeveloperApplication {
bot_public: this.bot_public,
bot_require_code_grant: this.bot_require_code_grant,
client_secret: this.client_secret,
bot: this.bot ? {...this.bot} : undefined,
bot: this.bot
? {
...this.bot,
flags: this.bot.flags,
}
: undefined,
};
}
}