fix: rest typings (#835)

* fix: rest typings

* fix: more typings
This commit is contained in:
Skillz4Killz
2021-04-12 11:18:13 -04:00
committed by GitHub
parent af3dbf1564
commit 78a894a4ab
9 changed files with 66 additions and 78 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export async function sendDirectMessage(
recipient_id: memberId,
}) as DMChannelCreatePayload;
const discordenoChannel = await structures.createDiscordenoChannel(
dmChannelData as unknown as ChannelCreatePayload,
dmChannelData as unknown as DiscordChannel,
);
// Recreate the channel and add it undert he users id
await cacheHandlers.set("channels", memberId, discordenoChannel);