Esempio n. 1
0
        public static async Task <IUserMessage> SendInfoAsync(this ITextChannel channel, string title, string content = null, string raw = null)
        {
            LocalMessageBuilder builder = new LocalMessageBuilder()
                                          .WithEmbed(MessageUtils.CreateEmbed(EmbedType.Info, title, content));

            if (raw is not null)
            {
                builder.Content = raw;
            }

            return(await channel.SendMessageAsync(builder.Build()));
        }