Esempio n. 1
0
        public static bool TryGetVoiceChannel(this SocketGuild g, string s, out SocketVoiceChannel c)
        {
            c = null;
            if (!g.HasVoiceChannel(s))
            {
                return(false);
            }

            c = g.VoiceChannels.Where(x => x.Name.ToLower() == s.ToLower()).First();
            return(true);
        }