Skip to content

Commit

Permalink
fix: wrong imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Oct 19, 2024
1 parent 77564dd commit 87ba67e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/vendetta/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`),
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/vendetta/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 87ba67e

Please sign in to comment.