Skip to content

Commit

Permalink
Fix RESTEvents logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Dec 1, 2024
1 parent 0314a8e commit d135591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import * as messageDelete from "./messageDelete";
const logger = getLogger("events");

export function registerEvents(bot: Client, prefix: string, support: CommandSupport): void {
bot.on(RESTEvents.Debug, logger.verbose);
bot.on(RESTEvents.RateLimited, logger.warn);
bot.rest.on(RESTEvents.Debug, info => logger.verbose(RESTEvents.Debug, info));
bot.rest.on(RESTEvents.RateLimited, rateLimitInfo => logger.warn(RESTEvents.RateLimited, rateLimitInfo));
bot.on("warn", logger.warn);
bot.on("error", logger.error);
bot.on("shardReady", shard => logger.notify(`Shard ${shard} ready`));
Expand Down

0 comments on commit d135591

Please sign in to comment.