chore: verbose imports

This commit is contained in:
ayntee
2020-12-22 22:59:09 +04:00
parent b353987809
commit dfe6f371d3
22 changed files with 936 additions and 937 deletions
+4 -3
View File
@@ -1,7 +1,5 @@
import { cacheHandlers } from "../controllers/cache.ts";
import { botID } from "../../bot.ts";
import { RequestManager } from "../../rest/mod.ts";
import { Member, structures } from "../structures/structures.ts";
import {
DMChannelCreatePayload,
EditMemberOptions,
@@ -18,6 +16,9 @@ import {
highestRole,
} from "../../util/permissions.ts";
import { urlToBase64 } from "../../util/utils.ts";
import { cacheHandlers } from "../controllers/cache.ts";
import { createChannel } from "../structures/channel.ts";
import { Member } from "../structures/member.ts";
import { sendMessage } from "./channel.ts";
/** The users custom avatar or the default avatar if you don't have a member object. */
@@ -123,7 +124,7 @@ export async function sendDirectMessage(
) as DMChannelCreatePayload;
// Channel create event will have added this channel to the cache
cacheHandlers.delete("channels", dmChannelData.id);
const channel = await structures.createChannel(dmChannelData);
const channel = await createChannel(dmChannelData);
// Recreate the channel and add it undert he users id
cacheHandlers.set("channels", memberID, channel);
dmChannel = channel;