public static InteractiblePage BuildHelpPage() { var commandType = new Commands(); var methods = commandType.GetType().GetMethods().Where(m => m.GetCustomAttributes(typeof(CommandAttribute), false).Length > 0).ToArray(); var methodAttributes = methods[0].GetCustomAttributes(); EmbedBuilder builder = new EmbedBuilder(); builder.WithTitle("Default Command List"); builder.WithThumbnailUrl("https://cdn.discordapp.com/emojis/779798986659594271.gif"); builder.WithColor(Color.Purple); builder.WithFooter(footer => footer.Text = "WangBot v0.1").WithCurrentTimestamp(); var page = new InteractiblePage(); page.Embed = builder; var leftEmote = new Emoji(""); Action leftAction = () => { }; page.AddEmoteAction(leftEmote, leftAction); return(page); }
public static void AddPage(InteractiblePage page) { pages.Add(page); }