Ejemplo n.º 1
0
        /// <summary>
        ///  Build the command and put it in a state in which we can use to define it to Discord.
        /// </summary>
        public SlashCommandCreationProperties BuildCommand()
        {
            var builder = new SlashCommandBuilder();

            builder.WithName(Name);
            builder.WithDescription(Description);
            builder.Options = new List <SlashCommandOptionBuilder>();

            foreach (var parameter in Parameters)
            {
                builder.AddOptions(parameter);
            }

            return(builder.Build());
        }