chore: fix import and exports

This commit is contained in:
ayntee
2021-03-29 23:47:31 +04:00
parent 352a7b9f49
commit 79d57f0377
45 changed files with 67 additions and 134 deletions
-1
View File
@@ -1,7 +1,6 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import { structures } from "../../structures/mod.ts";
import { DiscordGatewayPayload } from "../../types/gateway.ts";
export async function handleMessageCreate(data: DiscordGatewayPayload) {
const payload = data.d as DiscordMessage;
-4
View File
@@ -1,9 +1,5 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import {
DiscordGatewayPayload,
DiscordMessageDelete,
} from "../../types/gateway.ts";
export async function handleMessageDelete(data: DiscordGatewayPayload) {
const payload = data.d as DiscordMessageDelete;
@@ -1,9 +1,5 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import {
DiscordGatewayPayload,
DiscordMessageDeleteBulk,
} from "../../types/gateway.ts";
export async function handleMessageDeleteBulk(data: DiscordGatewayPayload) {
const payload = data.d as DiscordMessageDeleteBulk;
@@ -1,10 +1,6 @@
import { botId, eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import { structures } from "../../structures/mod.ts";
import {
DiscordGatewayPayload,
DiscordMessageReactionAdd,
} from "../../types/gateway.ts";
export async function handleMessageReactionAdd(data: DiscordGatewayPayload) {
const payload = data.d as DiscordMessageReactionAdd;
@@ -1,10 +1,6 @@
import { botId, eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import { structures } from "../../structures/mod.ts";
import {
DiscordGatewayPayload,
DiscordMessageReactionRemove,
} from "../../types/gateway.ts";
export async function handleMessageReactionRemove(
data: DiscordGatewayPayload,
@@ -1,9 +1,5 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import {
DiscordGatewayPayload,
DiscordMessageReactionRemoveAll,
} from "../../types/gateway.ts";
export async function handleMessageReactionRemoveAll(
data: DiscordGatewayPayload,
@@ -1,9 +1,5 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import {
DiscordGatewayPayload,
DiscordMessageReactionRemoveEmoji,
} from "../../types/gateway.ts";
export async function handleMessageReactionRemoveEmoji(
data: DiscordGatewayPayload,
-1
View File
@@ -1,7 +1,6 @@
import { eventHandlers } from "../../bot.ts";
import { cacheHandlers } from "../../cache.ts";
import { structures } from "../../structures/mod.ts";
import { DiscordGatewayPayload } from "../../types/gateway.ts";
export async function handleMessageUpdate(data: DiscordGatewayPayload) {
const payload = data.d as DiscordMessage;