MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getUserSettings

Method getUserSettings

autochangename/autochangename.ts:200–204  ·  view source on GitHub ↗
(userId: number)

Source from the content-addressed store, hash-verified

198
199 static async getUserSettings(userId: number): Promise<UserSettings | null> {
200 if (!userId || isNaN(userId)) return null;
201 await this.init();
202 return this.db?.data?.users?.[userId.toString()] ?? null;
203 }
204
205 static async saveUserSettings(settings: UserSettings): Promise<boolean> {
206 if (!settings?.user_id) return false;
207 await this.init();

Callers 7

updateUserProfileMethod · 0.80
requireSettingsFunction · 0.80
handleSaveMethod · 0.80
handleToggleMethod · 0.80
handleResetMethod · 0.80
initMethod · 0.80

Calls 1

initMethod · 0.95

Tested by

no test coverage detected