DisTube API Documentation
    Preparing search index...

    Interface PlayOptions<T>

    interface PlayOptions<T = unknown> {
        member?: GuildMember;
        message?: Message<boolean>;
        metadata?: T;
        position?: number;
        skip?: boolean;
        textChannel?: GuildTextBasedChannel;
    }

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Index

    Properties

    member?: GuildMember

    Requested user

    message?: Message<boolean>

    Called message (For built-in search events. If this is a falsy value, it will play the first result instead)

    metadata?: T

    Metadata

    position?: number

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

    skip?: boolean

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

    textChannel?: GuildTextBasedChannel

    The default text channel of the queue