public bool TrySetRelayPoint(SocketGuild g, ulong u) { if (!g.HasTextChannel(u)) { return(false); } SetRelayPoint(u); return(true); }
public static bool TryGetTextChannel(this SocketGuild g, string s, out SocketTextChannel c) { c = null; if (!g.HasTextChannel(s)) { return(false); } c = g.TextChannels.Where(x => x.Name.ToLower() == s.ToLower()).First(); return(true); }
public static bool TryGetTextChannel(this SocketGuild g, ulong id, out SocketTextChannel c) { c = null; if (!g.HasTextChannel(id)) { return(false); } c = g.GetTextChannel(id); return(true); }