From 86472a05991f5d487ae84be0c35d2d51cfc2ba75 Mon Sep 17 00:00:00 2001 From: Ayfri Date: Sun, 24 Jan 2021 16:05:40 +0100 Subject: [PATCH] Removed types form git. --- types/Fetcher.d.ts | 16 ---------------- types/index.d.ts | 2 -- types/main.d.ts | 23 ----------------------- 3 files changed, 41 deletions(-) delete mode 100644 types/Fetcher.d.ts delete mode 100644 types/index.d.ts delete mode 100644 types/main.d.ts diff --git a/types/Fetcher.d.ts b/types/Fetcher.d.ts deleted file mode 100644 index 63c4b62..0000000 --- a/types/Fetcher.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import { Client, Message, Collection, Snowflake, TextChannel, Guild } from 'discord.js'; -import { EventEmitter } from 'events'; -/** - * The main class used to fetch things. - */ -export declare class Fetcher extends EventEmitter { - readonly client: Client; - /** - * A simple property set to `true` when the Fetcher is fetching a bulk of messages, then set to false. - */ - fetching: boolean; - constructor(client: Client); - fetchChannel(channelID: Snowflake | TextChannel): Promise>; - fetchGuild(guildID: Snowflake | Guild): Promise>; -} diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index 65706bf..0000000 --- a/types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { fetchChannelMessages, fetchGuildMessages } from './main.js'; -export { Fetcher } from './Fetcher'; diff --git a/types/main.d.ts b/types/main.d.ts deleted file mode 100644 index 541f028..0000000 --- a/types/main.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Fetch all the messages from a Discord Guild. - * @param {module:"discord.js".Client} client - Your Discord.js Client. - * @param {string} guildID - The ID of the Guild to be fetch. - * @returns {Promise} - All the messages fetched. - * @deprecated Use {@link Fetcher} class instead. - */ -export function fetchGuildMessages(client: any, guildID: string): Promise<{ - "\"C:/Users/Pierre/WebstormProjects/libs/discord-fetch/src/main\"": typeof import("./main"); -}>; -/** - * Fetch all the messages from a Discord TextChannel. - * - * @param {module:"discord.js".Client} client - Your Discord.js Client. - * @param {module:"discord.js".TextChannel | module:"discord.js".NewsChannel} channel - The ID of the Discord TextChannel. - * @returns {Promise} - All the messages fetched. - * @deprecated Use {@link Fetcher} class instead. - */ -export function fetchChannelMessages(client: any, channel: any): Promise<{ - "\"C:/Users/Pierre/WebstormProjects/libs/discord-fetch/src/main\"": typeof import("./main"); -}>; -declare namespace __C__Users_Pierre_WebstormProjects_libs_discord_fetch_src_main_ { } -export {};