Fix error in example. (#1807)

This commit is contained in:
PoofImaFox
2021-04-28 08:55:57 -04:00
committed by GitHub
parent 452f2dca7c
commit 86dc89e821

View File

@@ -9,7 +9,7 @@ namespace _03_sharded_client.Modules
[Command("info")] [Command("info")]
public async Task InfoAsync() public async Task InfoAsync()
{ {
var msg = $@"Hi {Context.User}! There are currently {Context.Client.Shards} shards! var msg = $@"Hi {Context.User}! There are currently {Context.Client.Shards.Count} shards!
This guild is being served by shard number {Context.Client.GetShardFor(Context.Guild).ShardId}"; This guild is being served by shard number {Context.Client.GetShardFor(Context.Guild).ShardId}";
await ReplyAsync(msg); await ReplyAsync(msg);
} }