UNPKG

discord-birthday

Version:

discord-birthday is a powerful package that allows you to create a birthday system on your discord bot easily and quickly.

45 lines (44 loc) 947 B
import { Guild, GuildMember, User } from "discord.js"; import Timezone from "./timezone"; export { Timezone }; export declare type Options = { timezone?: Timezone; hour?: number; minute?: number; }; export declare type Data = { userId: string; seeAge: boolean; date: Date | string; guilds: string[]; }; export declare type guildsData = { channels: string; birthdays: string[]; }; export declare type BirthdayData = { guilds: { [key: string]: guildsData; }; birthdays: { [key: string]: Data; }; }; export declare type userBirthdayData = { user: User; seeAge: boolean; date: Date; age: number; nextBirthday: Date; daysBeforeNext: number; guilds: Guild[]; }; export declare type memberBirthdayData = { member: GuildMember; seeAge: boolean; date: Date; age: number; nextBirthday: Date; daysBeforeNext: number; guild: Guild; };