Hierarchy (view full)

Implements

Constructors

Properties

channelID: string

The id of the channel this giveaway has been created in.

duration: number

The duration of this giveaway in ms.

entries: string[]

The user entries for this giveaway.

guildID: string

The id of the guild this giveaway has been created on.

hasEnded: boolean

Indicates whether this giveaway has ended.

hostID: string

The id of the host for this giveaway.

id: string

The id of this giveaway.

messageID?: string

The id of the message this giveaway is associated with.

previousWinners?: string[]

The previous winners of this giveaway.

prize: string

The prize of this giveaway.

requirements?: IGiveawayRequirements

The requirements all participants have to meet for entering this giveaway.

timestamp: number

The timestamp this giveaway has been created at.

winners: string[]

The randomly selected winners of this giveaway.

winnersCount: number

The max amount of winners for this giveaway.

Methods

  • Returns whether a member is eligible to enter this giveaway.

    Parameters

    • member: GuildMember | APIInteractionGuildMember

      The guild member to check for requirements.

    Returns boolean

  • Returns whether a user has entered this giveaway.

    Parameters

    • userID: string

      The user to check for.

    Returns boolean