Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GiveawaysClient

Hierarchy

  • GiveawaysClient

Index

Constructors

Properties

GiveawayMessages: DefaultGiveawayMessages
MongooseConnectionURI: string
client: Client<boolean>
inviteschema: Model<InviteSchema, {}, {}> = ...
schema: Model<GiveawaySchema, {}, {}> = ...

Methods

  • checkRoles(userID: string, roleIDs: string[], message: Message<boolean>): Boolean
  • Parameters

    • userID: string
    • roleIDs: string[]
    • message: Message<boolean>

    Returns Boolean

  • choose(winners: number, msgid: string, message: Message<boolean>): Promise<any[]>
  • Parameters

    • winners: number
    • msgid: string
    • message: Message<boolean>

    Returns Promise<any[]>

  • create(client: Client<boolean>, __namedParameters: Object): Promise<void>
  • Parameters

    • client: Client<boolean>
    • __namedParameters: Object

    Returns Promise<void>

  • editButtons(client: Client<boolean>, data: GiveawaySchema): Promise<void>
  • Parameters

    Returns Promise<void>

  • end(message: Message<boolean>, data: any, giveawaymsg: Message<boolean>): Promise<"NO_WINNERS" | "ENDED">
  • Parameters

    • message: Message<boolean>
    • data: any
    • giveawaymsg: Message<boolean>

    Returns Promise<"NO_WINNERS" | "ENDED">

  • endByButton(client: Client<boolean>, Message: string, button: ButtonInteraction<CacheType>): Promise<void>
  • Parameters

    • client: Client<boolean>
    • Message: string
    • button: ButtonInteraction<CacheType>

    Returns Promise<void>

  • getButtons(host: string): MessageButton[]
  • Parameters

    • host: string

    Returns MessageButton[]

  • giveawayEmbed(client: Client<boolean>, status: string, __namedParameters: Object): Promise<MessageEmbed>
  • Parameters

    • client: Client<boolean>
    • status: string
    • __namedParameters: Object

    Returns Promise<MessageEmbed>

  • gotoGiveaway(data: any): MessageButton
  • Parameters

    • data: any

    Returns MessageButton

  • replacePlaceholders(string: string, data: GiveawaySchema, msg: Message<boolean>, winners?: any[]): string
  • Parameters

    • string: string
    • data: GiveawaySchema
    • msg: Message<boolean>
    • winners: any[] = []

    Returns string

  • reroll(client: Client<boolean>, Message: string, message: Message<boolean>): Promise<any[]>
  • Parameters

    • client: Client<boolean>
    • Message: string
    • message: Message<boolean>

    Returns Promise<any[]>

  • start(client: Client<boolean>): Promise<void>
  • Parameters

    • client: Client<boolean>

    Returns Promise<void>

  • startTimer(message: Message<boolean>, data: any, instant?: boolean): Promise<void>
  • Parameters

    • message: Message<boolean>
    • data: any
    • instant: boolean = false

    Returns Promise<void>

Generated using TypeDoc