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

    Interface GiveawayOptions

    Configuration options for creating a new giveaway.

    This interface defines all the parameters needed to start a giveaway, including duration, prize details, and entry requirements.

    const giveawayOptions: GiveawayOptions = {
    channelId: '123456789',
    prize: '$50 Steam Gift Card',
    winnerCount: 3,
    duration: 7 * 24 * 60 * 60 * 1000, // 7 days in milliseconds
    requirements: {
    requiredRoles: ['VIP', 'Regular'],
    accountAgeMin: Date.now() - (14 * 24 * 60 * 60 * 1000), // 2 weeks old
    joinedServerBefore: Date.now() - (7 * 24 * 60 * 60 * 1000) // Joined 1 week ago
    }
    };
    interface GiveawayOptions {
        channelId: string;
        prize: string;
        winnerCount: number;
        duration: number;
        requirements?: GiveawayRequirements;
    }
    Index

    Properties

    channelId: string

    Discord channel ID where the giveaway will be posted

    prize: string

    Description of the prize being offered

    winnerCount: number

    Number of winners to select when the giveaway ends

    duration: number

    Duration of the giveaway in milliseconds

    requirements?: GiveawayRequirements

    Optional entry requirements that participants must meet