Skip to content

PlayOptions

The options of DisTube#play.

T = unknown

member?: GuildMember;

Requested user

ResolveOptions.member


message?: Message<boolean>;

The message that triggered the command.

It is used as the default PlayHandlerOptions.textChannel of the queue when no textChannel is provided.


metadata?: T;

Metadata

ResolveOptions.metadata


position?: number;

[Default: 0] Position of the song/playlist to add to the queue, <= 0 to add to the end of the queue

PlayHandlerOptions.position


skip?: boolean;

[Default: false] Skip the playing song (if exists) and play the added playlist instantly

PlayHandlerOptions.skip


source?: string;

The source to resolve the input in.

It matches the Plugin.source of a plugin, or one of its Plugin.aliases. When it is not given, every plugin is used.

ResolveOptions.source


textChannel?: GuildTextBasedChannel;

The default text channel of the queue

PlayHandlerOptions.textChannel