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;
-
- namespace Discord.Commands
- {
- public static class CommandExtensions
- {
- public static DiscordClient UsingCommands(this DiscordClient client, CommandServiceConfig config = null)
- {
- client.AddService(new CommandService(config));
- return client;
- }
- public static DiscordClient UsingCommands(this DiscordClient client, Action<CommandServiceConfigBuilder> configFunc = null)
- {
- var builder = new CommandServiceConfigBuilder();
- configFunc(builder);
- client.AddService(new CommandService(builder));
- return client;
- }
- }
- }
|