fix: wrong imports

This commit is contained in:
PalmDevs 2024-10-19 21:39:05 +07:00
parent 77564dd6f5
commit 87ba67e8c2
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
3 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ export async function createVdPluginObject(plugin: VendettaPlugin) {
// Wrapping this with wrapSync is NOT an option.
storage: await createStorage<Record<string, any>>(storage.createMMKVBackend(plugin.id)),
},
logger: new DiscordLogger(`Revenge » ${plugin.manifest.name}`),
logger: new LoggerClass(`Revenge » ${plugin.manifest.name}`),
};
}

View file

@ -98,7 +98,7 @@ export const VdPluginManager = {
// Wrapping this with wrapSync is NOT an option.
storage: await createStorage<Record<string, any>>(createMMKVBackend(plugin.id)),
},
logger: new DiscordLogger(`Revenge » ${plugin.manifest.name}`),
logger: new LoggerClass(`Revenge » ${plugin.manifest.name}`),
};
const pluginString = `vendetta=>{return ${plugin.js}}\n//# sourceURL=${plugin.id}`;

View file

@ -11,5 +11,5 @@ export interface Logger {
verbose: LoggerFunction;
}
export const DiscordLogger = findByNameLazy("Logger");
export const logger: Logger = new DiscordLogger("Revenge");
export const LoggerClass = findByNameLazy("Logger");
export const logger: Logger = new LoggerClass("Revenge");