loriapi
Version:
A simple library for fetching information from Loritta, a popular Discord bot made by the Brazilian developer MrPowerGamerBR.
27 lines (26 loc) • 679 B
TypeScript
import { LoriApi } from './LoriApp';
interface GiveawayRoles {
roleIds: number[];
isAndCondition: boolean;
}
interface GiveawayOptions {
channelId: number;
reason: string;
description: string;
imageUrl?: string;
thumbnailUrl?: string;
color?: number;
reaction: string;
endsAt: string;
numberOfWinners: number;
roleIdsToBeGivenToTheWinners?: number[];
allowedRoles?: GiveawayRoles;
deniedRoles?: GiveawayRoles;
}
declare class GiveawayCreate {
private api;
private options;
constructor(api: LoriApi, options: GiveawayOptions);
createGiveaway(guildId: number): Promise<void>;
}
export default GiveawayCreate;