Class ClusterNode

      Hierarchy

      Accessors

      • get uptime(): number
      • Returns number

      Constructors

      Methods

      • Parameters

        • message: {
              guildId: string;
              op: "event";
              track: {
                  encoded: string;
                  info: {
                      artworkUrl: string;
                      author: string;
                      identifier: string;
                      isSeekable: boolean;
                      isStream: boolean;
                      isrc: string;
                      length: number;
                      position: number;
                      sourceName: string;
                      title: string;
                      uri: string;
                  };
                  pluginInfo: {
                      [x: string]: unknown;
                  };
                  userData: {
                      [x: string]: unknown;
                  };
              };
              type: "TrackStartEvent";
          } | {
              guildId: string;
              op: "event";
              reason: "finished" | "loadFailed" | "stopped" | "replaced" | "cleanup";
              track: {
                  encoded: string;
                  info: {
                      artworkUrl: string;
                      author: string;
                      identifier: string;
                      isSeekable: boolean;
                      isStream: boolean;
                      isrc: string;
                      length: number;
                      position: number;
                      sourceName: string;
                      title: string;
                      uri: string;
                  };
                  pluginInfo: {
                      [x: string]: unknown;
                  };
                  userData: {
                      [x: string]: unknown;
                  };
              };
              type: "TrackEndEvent";
          } | {
              exception: {
                  cause: string;
                  message: string;
                  severity: "common" | "suspicious" | "fault";
              };
              guildId: string;
              op: "event";
              track: {
                  encoded: string;
                  info: {
                      artworkUrl: string;
                      author: string;
                      identifier: string;
                      isSeekable: boolean;
                      isStream: boolean;
                      isrc: string;
                      length: number;
                      position: number;
                      sourceName: string;
                      title: string;
                      uri: string;
                  };
                  pluginInfo: {
                      [x: string]: unknown;
                  };
                  userData: {
                      [x: string]: unknown;
                  };
              };
              type: "TrackExceptionEvent";
          } | {
              guildId: string;
              op: "event";
              thresholdMs: number;
              track: {
                  encoded: string;
                  info: {
                      artworkUrl: string;
                      author: string;
                      identifier: string;
                      isSeekable: boolean;
                      isStream: boolean;
                      isrc: string;
                      length: number;
                      position: number;
                      sourceName: string;
                      title: string;
                      uri: string;
                  };
                  pluginInfo: {
                      [x: string]: unknown;
                  };
                  userData: {
                      [x: string]: unknown;
                  };
              };
              type: "TrackStuckEvent";
          } | {
              byRemote: boolean;
              code: number;
              guildId: string;
              op: "event";
              reason: string;
              type: "WebSocketClosedEvent";
          } | {
              guildId: string;
              op: "playerUpdate";
              state: {
                  connected: boolean;
                  ping: number;
                  position: number;
                  time: number;
              };
          }

        Returns void

      Properties

      cluster: Cluster
      identifier: string
      options: NodeOptions
      penalties: Penalties
      userId: string
      defaultMaxListeners: number