Пример #1
0
        public static async Task SendEmbed(this ISocketMessageChannel channel, EmbedTemplates template, string message)
        {
            switch (template)
            {
            case EmbedTemplates.Error:
                await channel.SendMessageAsync("", false, EmbedTemplate.Error(message));

                break;

            case EmbedTemplates.Forbidden:
                await channel.SendMessageAsync("", false, EmbedTemplate.Forbidden(message));

                break;

            case EmbedTemplates.Info:
                await channel.SendMessageAsync("", false, EmbedTemplate.Info(message));

                break;
            }
        }