Exemplo n.º 1
0
        public static CommandModule UseCommands(this DiscordClient client)
        {
            var module = new CommandModule();

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

            client.AddModule(module);
            return(module);
        }
Exemplo n.º 3
0
        public CommandModule(CommandConfig config)
        {
            this.config = config;

            instance = this;
        }
Exemplo n.º 4
0
        public CommandModule()
        {
            config = new CommandConfig();

            instance = this;
        }