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 locationsFullPaths: MakeRequired<Partial<Record<keyof RC['locations'], string>>, 'base' | 'output'> = {
const locationsFullPaths: RC['locations'] = {
base: locations.base,
output: locations.output,
};
@ -501,9 +501,7 @@ export interface StartOptions {
token: string;
}
interface RC extends ExtendedRC {
debug?: boolean;
locations: {
interface RCLocations extends ExtendedRCLocations {
base: string;
output: string;
commands?: string;
@ -511,7 +509,11 @@ interface RC extends ExtendedRC {
templates?: string;
events?: string;
components?: string;
} & ExtendedRCLocations;
}
interface RC extends ExtendedRC {
debug?: boolean;
locations: RCLocations;
token: string;
intents?: number;
applicationId?: string;