Prettified Code!

This commit is contained in:
itohatweb
2021-05-21 15:51:33 +00:00
committed by GitHub Action
parent fe4ab8517b
commit 3549cdeb63
279 changed files with 1617 additions and 1768 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import { sendMessage } from "../messages/send_message.ts";
/** Send a message to a users DM. Note: this takes 2 API calls. 1 is to fetch the users dm channel. 2 is to send a message to that channel. */
export async function sendDirectMessage(
memberId: bigint,
content: string | CreateMessage,
content: string | CreateMessage
) {
let dmChannel = await cacheHandlers.get("channels", memberId);
if (!dmChannel) {
@@ -19,10 +19,10 @@ export async function sendDirectMessage(
endpoints.USER_DM,
{
recipient_id: memberId,
},
}
);
const discordenoChannel = await structures.createDiscordenoChannel(
dmChannelData,
dmChannelData
);
// Recreate the channel and add it undert he users id
await cacheHandlers.set("channels", memberId, discordenoChannel);