Ejemplo n.º 1
0
        public static bool IsLobby(this IMessageChannel channel, ELOService service, out Lobby lobby)
        {
            if (!(channel is SocketGuildChannel gChannel))
            {
                lobby = null;
                return(false);
            }

            lobby = service.GetLobby(gChannel.Guild.Id, gChannel.Id);
            return(lobby != null);
        }