You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Threading.Tasks;
- using Discord.Commands;
-
- namespace _03_sharded_client.Modules
- {
- // Remember to make your module reference the ShardedCommandContext
- public class PublicModule : ModuleBase<ShardedCommandContext>
- {
- [Command("info")]
- public async Task InfoAsync()
- {
- var msg = $@"Hi {Context.User}! There are currently {Context.Client.Shards} shards!
- This guild is being served by shard number {Context.Client.GetShardFor(Context.Guild).ShardId}";
- await ReplyAsync(msg);
- }
- }
- }
|