Esempio n. 1
0
 public async Task CheckUserWarnsAsync(SocketUser user = null)
 {
     ModerationFunctions.CheckDirectories(Context.Guild);
     if (user == null)
     {
         user = Context.Message.Author;
     }
     if (File.Exists("/home/bob_the_daniel/Data/" + Context.Guild.OwnerId + "/Infractions/Discord/" + user.Id))
     {
         await ReplyAsync(embed : ModerationFunctions.CheckInfractions(user, Context.Guild.OwnerId + "/Infractions/Discord/" + user.Id));
     }
     else
     {
         await ReplyAsync(user.Username + " has no warns");
     }
 }