mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
fix type
This commit is contained in:
@@ -6,7 +6,7 @@ import { iconHashToBigInt } from "../util/hash.ts";
|
||||
|
||||
export type DiscordenoUser = ReturnType<typeof transformUser>;
|
||||
|
||||
export function transformUser(bot: Bot, payload: User) {
|
||||
export function transformUser(bot: Bot, payload: SnakeCasedPropertiesDeep<User>) {
|
||||
return {
|
||||
id: BigInt(payload.id),
|
||||
username: payload.username,
|
||||
|
||||
Reference in New Issue
Block a user