mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 01:07:22 +00:00
Update src/structures/role.ts
Co-authored-by: Ayyan <ayyantee@gmail.com>
This commit is contained in:
@@ -69,7 +69,7 @@ const baseRole: Partial<Role> = {
|
||||
export async function createRole(data: RoleData) {
|
||||
const { tags, ...rest } = data;
|
||||
|
||||
const restProps = {};
|
||||
const restProps: Record<keyof RoleData, any> = {};
|
||||
for (const key of Object.keys(rest)) {
|
||||
// @ts-ignore
|
||||
restProps[key] = createNewProp(rest[key]);
|
||||
|
||||
Reference in New Issue
Block a user