public static string ToCategoryString(this BotCategory category) { return(category switch { BotCategory.General => "General", BotCategory.EventsAndAnnouncements => "Events and Announcements", BotCategory.ConfigAndInfo => "Configuration and Information", BotCategory.Moderation => "Moderation", BotCategory.WebNovel => "WebNovel", BotCategory.Time => "Time", BotCategory.Miscellaneous => "Miscellaneous", BotCategory.Scheduling => "Scheduling sub-commands", BotCategory.Evaluation => "Evaluation", _ => throw new NotImplementedException(), });
public BotCategoryAttribute(BotCategory category) { this.Category = category; }