Skip to content

Commit 48cab03

Browse files
committed
add some explanatory comments
1 parent 7f3674f commit 48cab03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ async function handleInternal(
190190
let server_count = 0;
191191
let shard_id: number | undefined;
192192
// Checks if bot is sharded
193+
// Only run posting from shard 0
193194
if (client.shard?.ids.includes(0)) {
194195
shard_count = client.shard.count;
195-
shard_id = client.shard.ids.at(0);
196+
shard_id = client.shard.ids.at(0); // this should always only be a single number
196197

197198
// This will get as much info as it can, without erroring
198199
try {

0 commit comments

Comments
 (0)