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.
|
- [Group("admin")]
- public class AdminModule : ModuleBase<SocketCommandContext>
- {
- [Group("clean")]
- public class CleanModule : ModuleBase<SocketCommandContext>
- {
- // ~admin clean
- [Command]
- public async Task DefaultCleanAsync()
- {
- // ...
- }
-
- // ~admin clean messages 15
- [Command("messages")]
- public async Task CleanAsync(int count)
- {
- // ...
- }
- }
- // ~admin ban foxbot#0282
- [Command("ban")]
- public Task BanAsync(IGuildUser user) =>
- Context.Guild.AddBanAsync(user);
- }
|