delete comments

This commit is contained in:
Skillz4Killz
2021-10-28 21:06:28 +00:00
committed by GitHub
parent 4003fd1557
commit 96ca46db79
-124
View File
@@ -136,130 +136,6 @@ export function createBot<C extends CacheOptions = CacheOptions>(
handlers: createBotGatewayHandlers({}),
// @ts-ignore b quiet
cache: createCache(options?.cache?.isAsync ?? false, options?.cache?.customTableCreator),
// cache: {
// execute: async function (
// type:
// | "FILTER_CATEGORY_CHILDREN_CHANNELS"
// | "DELETE_MESSAGES_FROM_CHANNEL"
// | "DELETE_ROLE_FROM_MEMBER"
// | "BULK_DELETE_MESSAGES"
// | "GUILD_MEMBER_CHUNK"
// | "GUILD_MEMBER_COUNT_DECREMENT"
// | "GUILD_MEMBER_COUNT_INCREMENT"
// | "DELETE_MESSAGES_FROM_GUILD"
// | "DELETE_CHANNELS_FROM_GUILD"
// | "DELETE_GUILD_FROM_MEMBER",
// options: Record<string, any>
// ) {},
// executedSlashCommands: new Set<string>(),
// fetchAllMembersProcessingRequests: new Collection<string, Function>(),
// messages: {
// get: async function (id: bigint): Promise<DiscordenoMessage | undefined> {
// return ({} as any) as DiscordenoMessage;
// },
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint, guild: DiscordenoMessage): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// },
// guilds: {
// get: async function (id: bigint): Promise<DiscordenoGuild | undefined> {
// return ({} as any) as DiscordenoGuild;
// },
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint, guild: DiscordenoGuild): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// size: async function (): Promise<number> {
// return 0;
// },
// },
// channels: {
// get: async function (id: bigint): Promise<DiscordenoChannel | undefined> {
// return ({} as any) as DiscordenoChannel;
// },
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint, guild: DiscordenoChannel): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// },
// members: {
// get: async function (id: bigint): Promise<DiscordenoMember | undefined> {
// return ({} as any) as DiscordenoMember;
// },
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint, member: DiscordenoMember): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// },
// presence: {
// get: async function (id: bigint): Promise<DiscordenoPresence | undefined> {
// return ({} as any) as DiscordenoPresence;
// },
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint, guild: DiscordenoPresence): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// },
// users: {
// get: async function (id: bigint): Promise<DiscordenoUser | undefined> {
// return ({} as any) as DiscordenoUser;
// },
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint, member: DiscordenoUser): Promise<void> {
// return;
// },
// },
// dispatchedGuildIds: {
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// },
// dispatchedChannelIds: {
// has: async function (id: bigint): Promise<boolean> {
// return false;
// },
// set: async function (id: bigint): Promise<void> {
// return;
// },
// delete: async function (id: bigint): Promise<void> {
// return;
// },
// },
// },
} as unknown) as Bot<C extends { isAsync: true } ? AsyncCache : Cache>;
}