mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 18:00:08 +00:00
Update src/structures/message.ts
Co-authored-by: Ayyan <ayyantee@gmail.com>
This commit is contained in:
@@ -127,7 +127,7 @@ export async function createMessage(data: MessageCreateOptions) {
|
||||
...rest
|
||||
} = data;
|
||||
|
||||
const restProps = {};
|
||||
const restProps: Record<keyof MessageCreateOptions, any> = {};
|
||||
for (const key of Object.keys(rest)) {
|
||||
// @ts-ignore
|
||||
restProps[key] = createNewProp(rest[key]);
|
||||
|
||||
Reference in New Issue
Block a user