diff --git a/typings/index.d.ts b/typings/index.d.ts index 946ebc96..9bb8e497 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -43,7 +43,7 @@ declare module 'discord-giveaways' { } interface BonusEntry { bonus(member?: GuildMember): number | Promise; - cumulative: boolean; + cumulative?: boolean; } interface LastChanceOptions { enabled: boolean; @@ -105,7 +105,6 @@ declare module 'discord-giveaways' { public channelID: Snowflake; public client: Client; - public data: GiveawayData; public endAt: number; public ended: boolean; public guildID: Snowflake; @@ -122,28 +121,28 @@ declare module 'discord-giveaways' { // getters calculated using default manager options readonly exemptPermissions: PermissionResolvable[]; - readonly giveawayDuration: number; readonly embedColor: ColorResolvable; readonly embedColorEnd: ColorResolvable; readonly botsCanWin: boolean; readonly reaction: string; + readonly lastChance: LastChanceOptions; // getters calculated using other values readonly remainingTime: number; + readonly giveawayDuration: number; readonly messageURL: string; - readonly content: string; + readonly remainingTimeText: string; readonly channel: TextChannel; readonly exemptMembersFunction: Function | null; readonly bonusEntries: BonusEntry[]; + readonly data: GiveawayData; public exemptMembers(member: GuildMember): Promise; public edit(options: GiveawayEditOptions): Promise; public end(): Promise; - // @ts-ignore-next-line - public async fetchMessage(): Promise; + public fetchMessage(): Promise; public reroll(options: GiveawayRerollOptions): Promise; - // @ts-ignore-next-line - public async roll(winnerCount?: number): Promise; + public roll(winnerCount?: number): Promise; } interface GiveawayEditOptions { newWinnerCount?: number;