mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
ref
This commit is contained in:
@@ -15,12 +15,12 @@ export async function sendDirectMessage(
|
||||
const dmChannelData = await rest.runMethod("post", endpoints.USER_DM, {
|
||||
recipient_id: memberId,
|
||||
}) as DMChannelCreatePayload;
|
||||
const channelStruct = await structures.createChannelStruct(
|
||||
const discordenoChannel = await structures.createDiscordenoChannel(
|
||||
dmChannelData as unknown as ChannelCreatePayload,
|
||||
);
|
||||
// Recreate the channel and add it undert he users id
|
||||
await cacheHandlers.set("channels", memberId, channelStruct);
|
||||
dmChannel = channelStruct;
|
||||
await cacheHandlers.set("channels", memberId, discordenoChannel);
|
||||
dmChannel = discordenoChannel;
|
||||
}
|
||||
|
||||
// If it does exist try sending a message to this user
|
||||
|
||||
Reference in New Issue
Block a user