fix: wrong imports
This commit is contained in:
parent
77564dd6f5
commit
87ba67e8c2
3 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ export async function createVdPluginObject(plugin: VendettaPlugin) {
|
||||||
// Wrapping this with wrapSync is NOT an option.
|
// Wrapping this with wrapSync is NOT an option.
|
||||||
storage: await createStorage<Record<string, any>>(storage.createMMKVBackend(plugin.id)),
|
storage: await createStorage<Record<string, any>>(storage.createMMKVBackend(plugin.id)),
|
||||||
},
|
},
|
||||||
logger: new DiscordLogger(`Revenge » ${plugin.manifest.name}`),
|
logger: new LoggerClass(`Revenge » ${plugin.manifest.name}`),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ export const VdPluginManager = {
|
||||||
// Wrapping this with wrapSync is NOT an option.
|
// Wrapping this with wrapSync is NOT an option.
|
||||||
storage: await createStorage<Record<string, any>>(createMMKVBackend(plugin.id)),
|
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}`;
|
const pluginString = `vendetta=>{return ${plugin.js}}\n//# sourceURL=${plugin.id}`;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ export interface Logger {
|
||||||
verbose: LoggerFunction;
|
verbose: LoggerFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DiscordLogger = findByNameLazy("Logger");
|
export const LoggerClass = findByNameLazy("Logger");
|
||||||
export const logger: Logger = new DiscordLogger("Revenge");
|
export const logger: Logger = new LoggerClass("Revenge");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue