diff --git a/server.ts b/server.ts index 9d72866..1770f58 100644 --- a/server.ts +++ b/server.ts @@ -40,7 +40,7 @@ interface Config { musicDir: string; allowGuests: boolean; defaultPermissions: { - channel?: string[]; + channel?: string["listen", "control"]; }; } @@ -49,7 +49,8 @@ const CONFIG_PATH = join(import.meta.dir, "config.json"); const DEFAULT_CONFIG: Config = { port: 3001, musicDir: "./music", - allowGuests: true + allowGuests: true, + defaultPermissions: [''] }; // Create default config if missing