コード例 #1
0
    /// <summary>
    /// Adds a command module to the client.
    /// </summary>
    /// <param name="client">The client to add command module to</param>
    /// <param name="commandModule">The command module to add to the client</param>
    /// <param name="configuration">The configuration of the client's commands to use</param>
    /// <returns><see cref="GuildedBotClient">Guilded client</see></returns>
    public static AbstractGuildedClient AddCommands(this AbstractGuildedClient client, CommandModule commandModule, CommandConfiguration configuration)
    {
        commandModule.AddTo(client, configuration);

        return(client);
    }