Ejemplo n.º 1
0
 private static EmbedBuilder GetBaseEmbed(ModerationType type)
 {
     return(new EmbedBuilder()
     {
         Author = new EmbedAuthorBuilder()
         {
             Name = type.ToString()
         },
         Timestamp = DateTimeOffset.UtcNow,
         Color = BotCore.EmbedColor
     });
 }
Ejemplo n.º 2
0
        private static string ModerationTypeToAPIString(ModerationType type)
        {
            switch (type)
            {
            case ModerationType.ShowAvatar:
                return("showAvatar");

            case ModerationType.HideAvatar:
                return("hideAvatar");

            default:
                return(type.ToString().ToLower());
            }
        }