category + discovery + custom status fix, new config

This commit is contained in:
Featyre
2022-01-24 07:21:48 +00:00
parent edd5cf651c
commit a0fb2549d5
10 changed files with 39 additions and 34 deletions
+12 -4
View File
@@ -157,8 +157,12 @@ export interface ConfigValue {
available: Region[];
};
guild: {
showAllGuildsInDiscovery: boolean;
homeDiscoveryUseRecommendation: boolean; // TODO: Recommendation, privacy concern?
discovery: {
showAllGuilds: boolean;
useRecommendation: boolean; // TODO: Recommendation, privacy concern?
offset: number;
limit: number;
};
autoJoin: {
enabled: boolean;
guilds: string[];
@@ -354,8 +358,12 @@ export const DefaultConfigOptions: ConfigValue = {
],
},
guild: {
showAllGuildsInDiscovery: false,
homeDiscoveryUseRecommendation: false,
discovery: {
showAllGuilds: false,
useRecommendation: false,
offset: 0,
limit: 24,
},
autoJoin: {
enabled: true,
canLeave: true,
+1 -1
View File
@@ -287,7 +287,7 @@ export class Guild extends BaseClass {
default_message_notifications: 1, // defaults effect: setting the push default at mentions-only will save a lot
explicit_content_filter: 0,
features: [],
primary_category_id: 0,
primary_category_id: null,
id: guild_id,
max_members: 250000,
max_presences: 250000,
+2 -7
View File
@@ -289,12 +289,7 @@ export const defaultSettings: UserSettings = {
animate_stickers: 0,
contact_sync_enabled: false,
convert_emoticons: false,
custom_status: {
emoji_id: undefined,
emoji_name: undefined,
expires_at: undefined,
text: undefined,
},
custom_status: null,
default_guilds_restricted: false,
detect_platform_accounts: true,
developer_mode: false,
@@ -334,7 +329,7 @@ export interface UserSettings {
emoji_name?: string;
expires_at?: number;
text?: string;
};
} | null;
default_guilds_restricted: boolean;
detect_platform_accounts: boolean;
developer_mode: boolean;