Update src/structures/channel.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>
This commit is contained in:
Skillz4Killz
2020-12-19 12:19:57 -05:00
committed by GitHub
co-authored by Ayyan
parent 6ed345b87b
commit 707d4a6673
+1 -1
View File
@@ -36,7 +36,7 @@ export async function createChannel(
...rest
} = data;
const restProps = {};
const restProps: Record<keyof ChannelCreatePayload, any> = {};
for (const key of Object.keys(rest)) {
// @ts-ignore
restProps[key] = createNewProp(rest[key]);