import type fixes

This commit is contained in:
Skillz
2020-09-20 19:45:34 -04:00
parent ebc3d9a8b3
commit 0c1f9529e0
38 changed files with 217 additions and 197 deletions

View File

@@ -1,8 +1,8 @@
import { Collection } from "./collection.ts";
import { Message } from "../structures/message.ts";
import { Guild } from "../structures/guild.ts";
import { Channel } from "../structures/channel.ts";
import { PresenceUpdatePayload } from "../types/discord.ts";
import type { Message } from "../structures/message.ts";
import type { Guild } from "../structures/guild.ts";
import type { Channel } from "../structures/channel.ts";
import type { PresenceUpdatePayload } from "../types/discord.ts";
export interface CacheData {
isReady: boolean;
@@ -23,5 +23,3 @@ export const cache: CacheData = {
presences: new Collection(),
fetchAllMembersProcessingRequests: new Collection<string, Function>(),
};

View File

@@ -1,4 +1,4 @@
import { ImageSize, ImageFormats } from "../types/cdn.ts";
import type { ImageSize, ImageFormats } from "../types/cdn.ts";
export const formatImageURL = (
url: string,

View File

@@ -1,10 +1,9 @@
import {
Permission,
Permissions,
} from "../types/permission.ts";
import type { Permission } from "../types/permission.ts";
import type { Role } from "../structures/role.ts";
import type { Guild } from "../structures/guild.ts";
import { Permissions } from "../types/permission.ts";
import { botID } from "../module/client.ts";
import { Role } from "../structures/role.ts";
import { Guild } from "../structures/guild.ts";
import { cacheHandlers } from "../controllers/cache.ts";
/** Checks if the member has this permission. If the member is an owner or has admin perms it will always be true. */

View File

@@ -1,4 +1,5 @@
import { StatusType } from "../types/discord.ts";
import type { StatusType } from "../types/discord.ts";
import { ActivityType } from "../types/activity.ts";
import { sendGatewayCommand } from "../module/shardingManager.ts";
import { encode } from "https://deno.land/std@0.67.0/encoding/base64.ts";