Esempio n. 1
0
        public bool TrySetRelayPoint(SocketGuild g, ulong u)
        {
            if (!g.HasTextChannel(u))
            {
                return(false);
            }

            SetRelayPoint(u);
            return(true);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }