public static CommandModule UseCommands(this DiscordClient client)
        {
            var module = new CommandModule();

            client.AddModule(module);
            return(module);
        }
        public static CommandModule UseCommands(this DiscordClient client, CommandConfig config)
        {
            var module = new CommandModule(config);

            client.AddModule(module);
            return(module);
        }
Beispiel #3
0
        public CommandModule(CommandConfig config)
        {
            this.config = config;

            instance = this;
        }
Beispiel #4
0
        public CommandModule()
        {
            config = new CommandConfig();

            instance = this;
        }