Skip to content

Commit 7f3674f

Browse files
committed
refactor: make if clause a bit slimmer
1 parent 0030830 commit 7f3674f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ async function handleInternal(
190190
let server_count = 0;
191191
let shard_id: number | undefined;
192192
// Checks if bot is sharded
193-
if (client.shard && client.shard.ids.includes(0)) {
193+
if (client.shard?.ids.includes(0)) {
194194
shard_count = client.shard.count;
195195
shard_id = client.shard.ids.at(0);
196196

0 commit comments

Comments
 (0)