fix: use interface instead of intersection

This commit is contained in:
MARCROCK22 2024-10-26 00:30:25 +00:00
parent 00c96e6c54
commit 4f8c1d09c7

View File

@ -412,7 +412,7 @@ export class BaseClient {
const { locations, debug, ...env } = seyfertConfig; const { locations, debug, ...env } = seyfertConfig;
const locationsFullPaths: MakeRequired<Partial<Record<keyof RC['locations'], string>>, 'base' | 'output'> = { const locationsFullPaths: RC['locations'] = {
base: locations.base, base: locations.base,
output: locations.output, output: locations.output,
}; };
@ -501,17 +501,19 @@ export interface StartOptions {
token: string; token: string;
} }
interface RCLocations extends ExtendedRCLocations {
base: string;
output: string;
commands?: string;
langs?: string;
templates?: string;
events?: string;
components?: string;
}
interface RC extends ExtendedRC { interface RC extends ExtendedRC {
debug?: boolean; debug?: boolean;
locations: { locations: RCLocations;
base: string;
output: string;
commands?: string;
langs?: string;
templates?: string;
events?: string;
components?: string;
} & ExtendedRCLocations;
token: string; token: string;
intents?: number; intents?: number;
applicationId?: string; applicationId?: string;