startPlaying method

void startPlaying()

Forces the song to start playing

Implementation

void startPlaying() {
  if (this.endTime == null) {
    _node._sendPayload("play", this.guildId, {
      "track": track.track,
      "noReplace": !this.replace,
      "startTime": this.startTime.inMilliseconds
    });

    return;
  }

  _node._sendPayload("play", this.guildId, {
    "track": track.track,
    "noReplace": !this.replace,
    "startTime": this.startTime,
    "endTime": this.endTime!.inMilliseconds
  });
}