Skip to content

Commit

Permalink
Fix issue with shard number in bot log
Browse files Browse the repository at this point in the history
  • Loading branch information
SunburntRock89 committed Jun 9, 2023
1 parent 45b7454 commit a78aa2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/events/guildCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Guild } from "discord.js";
import DTelClient from "../internals/client";

export default async(client: DTelClient, guild: Guild): Promise<void> => {
client.log(`📥 Joined guild \`${guild.name}\` (\`${guild.id}\`). Currently in \`${client.guilds.cache.size}\` servers on Shard ${client.shard!.count} and \`${await client.getGuildCount()}\` servers total.`);
client.log(`📥 Joined guild \`${guild.name}\` (\`${guild.id}\`). Currently in \`${client.guilds.cache.size}\` servers on Shard ${process.env.SHARDS} and \`${await client.getGuildCount()}\` servers total.`);
};
2 changes: 1 addition & 1 deletion src/events/guildDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Guild } from "discord.js";
import DTelClient from "../internals/client";

export default async(client: DTelClient, guild: Guild): Promise<void> => {
client.log(`📤 Left guild \`${guild.name}\` (\`${guild.id}\`). Currently in \`${client.guilds.cache.size}\` servers on Shard ${client.shard!.count} and \`${await client.getGuildCount()}\` servers total.`);
client.log(`📤 Left guild \`${guild.name}\` (\`${guild.id}\`). Currently in \`${client.guilds.cache.size}\` servers on Shard ${process.env.SHARDS} and \`${await client.getGuildCount()}\` servers total.`);
};

0 comments on commit a78aa2e

Please sign in to comment.