mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-03-31 13:15:45 +00:00
Merge pull request #185 from CyberL1/fix/guild-folder-schema
fix: only guild_ids is required in guild folder
This commit is contained in:
@@ -128,10 +128,10 @@ export interface mute_config {
|
||||
end_time: number;
|
||||
}
|
||||
export interface guildFolder {
|
||||
color: number;
|
||||
color?: number | null;
|
||||
guild_ids: string[];
|
||||
id: number;
|
||||
name: string;
|
||||
id?: number | null;
|
||||
name?: string | null;
|
||||
}
|
||||
export interface freq {
|
||||
totalUses: number;
|
||||
|
||||
@@ -1613,10 +1613,10 @@ class Localuser {
|
||||
const guild_folders: guildFolder[] = this.guildOrder.map((elm) => {
|
||||
if (elm instanceof Guild) {
|
||||
return {
|
||||
id: 0,
|
||||
name: "",
|
||||
id: null,
|
||||
name: null,
|
||||
guild_ids: [elm.id],
|
||||
color: 0,
|
||||
color: null,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user