diff --git a/packages/core/src/structures/channels.ts b/packages/core/src/structures/channels.ts index e9c2b51..06a2d04 100644 --- a/packages/core/src/structures/channels.ts +++ b/packages/core/src/structures/channels.ts @@ -1147,8 +1147,8 @@ export class ChannelFactory { return { id: v.id, type: v.type, - allow: new Permissions(parseInt(v.allow!)), - deny: new Permissions(parseInt(v.deny!)), + allow: new Permissions(Number.parseInt(v.allow!)), + deny: new Permissions(Number.parseInt(v.deny!)), }; }); } diff --git a/packages/core/src/structures/invite.ts b/packages/core/src/structures/invite.ts index 03d0254..abdd029 100644 --- a/packages/core/src/structures/invite.ts +++ b/packages/core/src/structures/invite.ts @@ -108,7 +108,7 @@ export class Invite { : undefined; this.code = data.code; this.expiresAt = data.expires_at - ? Number.parseInt(data.expires_at) + ? Date.parse(data.expires_at) : undefined; this.inviter = data.inviter ? new User(session, data.inviter) diff --git a/packages/core/src/structures/members.ts b/packages/core/src/structures/members.ts index 425518c..9a2d161 100644 --- a/packages/core/src/structures/members.ts +++ b/packages/core/src/structures/members.ts @@ -32,18 +32,18 @@ export class Member implements Model { this.nickname = data.nick ? data.nick : undefined; this.premiumSince = data.premium_since - ? Number.parseInt(data.premium_since) + ? Date.parse(data.premium_since) : undefined; this.channelPermissions = data.permissions ? new Permissions(BigInt(data.permissions)) : undefined; - this.joinedTimestamp = Number.parseInt(data.joined_at); + this.joinedTimestamp = Date.parse(data.joined_at); this.roles = data.roles; this.deaf = !!data.deaf; this.mute = !!data.mute; this.pending = !!data.pending; this.communicationDisabledUntilTimestamp = data.communication_disabled_until - ? Number.parseInt(data.communication_disabled_until) + ? Date.parse(data.communication_disabled_until) : undefined; }