interface GiveawayManagerOptions<Database> {
    client: Client<boolean>;
    createEmbed?: ((data) => Awaitable<APIEmbed | JSONEncodable<APIEmbed>>);
    database: Database;
    dmWinners?: boolean;
    joinButtonData?: GiveawayManagerButtonOptions;
    maxTimeoutMs?: number;
    onBeforeHandleInteraction?: ((interaction) => Awaitable<boolean>);
    selectWinnerEntries?: ((entries, needed) => Awaitable<RawGiveawayEntry[]>);
}

Type Parameters

Properties

client: Client<boolean>
createEmbed?: ((data) => Awaitable<APIEmbed | JSONEncodable<APIEmbed>>)

Type declaration

database: Database
dmWinners?: boolean
maxTimeoutMs?: number
onBeforeHandleInteraction?: ((interaction) => Awaitable<boolean>)

Type declaration

    • (interaction): Awaitable<boolean>
    • Parameters

      • interaction: ButtonInteraction<CacheType>

      Returns Awaitable<boolean>

selectWinnerEntries?: ((entries, needed) => Awaitable<RawGiveawayEntry[]>)

Type declaration