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);
        }
Ejemplo n.º 2
0
        public static bool IsRegistered(this IUser user, ELOService service, out Player player)
        {
            if (!(user is SocketGuildUser gUser))
            {
                player = null;
                return(false);
            }

            player = service.GetPlayer(gUser.Guild.Id, gUser.Id);
            return(player != null);
        }