UNPKG

xfinity

Version:

Easy to use discord.js multipurpose package for your bot

83 lines (76 loc) 2.17 kB
import { Client, Message, CommandInteraction, TextBasedChannels, MessageEmbed, } from "discord.js"; declare module "xfinity"; export declare function bTicket( message: CommandInteraction, options?: bTicketOptions ): Promise<void>; export declare function handleinteraction( client: Client, options?: handleInteractionOptions ): Promise<void>; export declare function fetchTranscript( channel: TextBasedChannels, message: Message | CommandInteraction, numberOfMessages: number ): Promise<void>; export declare function mPagination( message: CommandInteraction, pages: Array<MessageEmbed>, options?: mPaginationOptions ): Promise<void>; export declare function suggestion( message: CommandInteraction, client: Client, options: suggestionOptions ): Promise<void>; export declare function giveaway( message: CommandInteraction, options: giveawayOptions ): Promise<void>; import { ColorResolvable } from "discord.js"; export type bTicketOptions = { bcolor?: buttoncolors; emoji?: String; embedcolor?: ColorResolvable; }; export type suggestionOptions = { chid: String; suggest?: ColorResolvable; accept?: ColorResolvable; deny?: ColorResolvable; }; export type giveawayOptions = { congratsmsg?: String; color?: ColorResolvable; }; type handleInteractionOptions = { closeButtonColor?: buttoncolors; reopenButtonColor?: buttoncolors; deleteButtonColor?: buttoncolors; deleteChannelButtonColor?: buttoncolors; trasncriptButtonColor?: buttoncolors; yesButtonColor?: buttoncolors; noButtonColor?: buttoncolors; ticketName?: ticketname; spamMessage?: String; ticketOpenMessage?: String; ticketOpenEmbedColor?: ColorResolvable; confirmationMessage?: String; confirmationEmbedColor?: ColorResolvable; ticketDeleteMessage?: String; ticketDeleteCancelMessage?: String; closeDescription?: String; parentId?: String; }; type mPaginationOptions = { label: String; description: String; }; type buttoncolors = "DANGER" | "SECONDARY" | "PRIMARY" | "SUCCESS"; type ticketname = "{tag}" | "{username}" | "{id}";