def invite(invite)
      code = resolve_invite_code(invite)
      Invite.new(JSON.parse(API::Invite.resolve(token, code)), self)
    end
def invite(invite)
      code = resolve_invite_code(invite)
      Invite.new(JSON.parse(API::Invite.resolve(token, code)), self)
    end
Gets information about an invite.
 @param invite [String, Invite] The invite to join. For possible formats see {#resolve_invite_code}.
 @return [Invite] The invite with information about the given invite URL.