Ejemplo n.º 1
0
        public async Task Roll([Remainder] string rollText = null)
        {
            rollText = RollCommands.TextOrDefault(rollText);

            List <List <RollResult> > result = RollCommands.BuildAndRoll(rollText);

            EmbedBuilder builder = RollFormater.GenerateDiscordBuilder(result, Context);

            // Post the embed to the channel
            await Context.Channel.SendMessageAsync(string.Empty, embed : builder.Build());

            // Delete the requesting message
            // await Context.Message.DeleteAsync();
        }