Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public static bool TryGetRole(this SocketGuild g, string s, out SocketRole role) { role = null; if (!g.HasRole(s)) { return(false); } if (g.MentionsRole(s)) { role = g.Roles.Where(x => x.Mention == s).First(); return(true); } role = g.Roles.Where(x => x.Name.ToLower() == s.ToLower()).First(); return(true); }