fix: export aliases from mod.ts

This commit is contained in:
ayntee
2021-03-15 15:41:46 +04:00
parent ab70187419
commit e852dc315a
4 changed files with 21 additions and 18 deletions
@@ -3,14 +3,14 @@ import {
lastShardID,
setApplicationID,
setBotID,
} from "../bot.ts";
import { DiscordPayload, ReadyPayload } from "../types/discord.ts";
import { cache } from "../util/cache.ts";
import { delay } from "../util/utils.ts";
import { allowNextShard, basicShards } from "../ws/mod.ts";
import { initialMemberLoadQueue } from "../structures/guild.ts";
import { structures } from "../structures/mod.ts";
import { cacheHandlers } from "../cache.ts";
} from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import { initialMemberLoadQueue } from "../../structures/guild.ts";
import { structures } from "../../structures/mod.ts";
import { DiscordPayload, ReadyPayload } from "../../types/discord.ts";
import { cache } from "../../util/cache.ts";
import { delay } from "../../util/utils.ts";
import { allowNextShard, basicShards } from "../../ws/mod.ts";
export async function handleReady(
data: DiscordPayload,
+2 -1
View File
@@ -29,10 +29,10 @@ import { handleMessageReactionRemove } from "./messages/MESSAGE_REACTION_REMOVE.
import { handleMessageReactionRemoveAll } from "./messages/MESSAGE_REACTION_REMOVE_ALL.ts";
import { handleMessageReactionRemoveEmoji } from "./messages/MESSAGE_REACTION_REMOVE_EMOJI.ts";
import { handleMessageUpdate } from "./messages/MESSAGE_UPDATE.ts";
import { handleReady } from "./misc/READY.ts";
import { handlePresenceUpdate } from "./presence/PRESENCE_UPDATE.ts";
import { handleTypingStart } from "./presence/TYPING_START.ts";
import { handleUserUpdate } from "./presence/USER_UPDATE.ts";
import { handleReady } from "./READY.ts";
import { handleGuildRoleCreate } from "./roles/GUILD_ROLE_CREATE.ts";
import { handleGuildRoleDelete } from "./roles/GUILD_ROLE_DELETE.ts";
import { handleGuildRoleUpdate } from "./roles/GUILD_ROLE_UPDATE.ts";
@@ -85,6 +85,7 @@ export {
};
export let handlers = {
// misc
READY: handleReady,
// channels
CHANNEL_CREATE: handleChannelCreate,