Better Giveaways - v1.0.0-beta.2
    Preparing search index...

    Interface GiveawayData

    Represents the complete data structure of a giveaway.

    This interface contains all the information needed to track and manage a giveaway, including its current state, configuration, and Discord-related identifiers.

    const giveawayData: GiveawayData = {
    giveawayId: 'abc123def',
    messageId: '987654321',
    channelId: '123456789',
    prize: 'Discord Nitro',
    winnerCount: 2,
    endAt: Date.now() + (24 * 60 * 60 * 1000), // 24 hours from now
    ended: false,
    requirements: {
    requiredRoles: ['987654321'],
    accountAgeMin: Date.now() - (30 * 24 * 60 * 60 * 1000) // 30 days old
    }
    };
    interface GiveawayData {
        giveawayId: string;
        messageId: null | string;
        channelId: string;
        prize: string;
        winnerCount: number;
        endAt: number;
        ended: boolean;
        requirements?: GiveawayRequirements;
    }
    Index

    Properties

    giveawayId: string

    Unique identifier for the giveaway, generated automatically

    messageId: null | string

    Discord message ID of the giveaway embed, null until message is sent

    channelId: string

    Discord channel ID where the giveaway is hosted

    prize: string

    Description of the prize being given away

    winnerCount: number

    Number of winners to be selected

    endAt: number

    UNIX timestamp when the giveaway should end

    ended: boolean

    Whether the giveaway has been concluded

    requirements?: GiveawayRequirements

    Optional entry requirements for participants