Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
fix: sendDirectMessage content error
Browse files Browse the repository at this point in the history
  • Loading branch information
Skillz4Killz authored Dec 24, 2021
1 parent 9681fd9 commit 7298317
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sendDirectMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export async function sendDirectMessage(
userId: bigint,
content: string | CreateMessage,
) {
if (typeof content === "string") content = { content };

// GET CHANNEL ID FROM CACHE OR CREATE THE CHANNEL FOR THIS USER
const cachedChannelId = dmChannelIds.get(userId);
// IF ID IS CACHED SEND MESSAGE DIRECTLY
Expand Down

0 comments on commit 7298317

Please sign in to comment.