diff --git a/structures/guild.ts b/structures/guild.ts index 3e6243bef..aa5183be1 100644 --- a/structures/guild.ts +++ b/structures/guild.ts @@ -70,7 +70,9 @@ export const createGuild = (data: CreateGuildPayload) => { /** The users in this guild. */ members: new Map(), /** The channels in the guild */ - channels: new Map(data.channels.map((c) => [c.id, createChannel(c, data.id)])), + channels: new Map( + data.channels.map((c) => [c.id, createChannel(c, data.id)]), + ), /** The presences of all the users in the guild. */ presences: new Map(data.presences.map((p) => [p.user.id, p])), /** The total number of members in this guild. This value is updated as members leave and join the server. However, if you do not have the intent enabled to be able to listen to these events, then this will not be accurate. */ diff --git a/structures/member.ts b/structures/member.ts index ebe0eead8..82c314ca3 100644 --- a/structures/member.ts +++ b/structures/member.ts @@ -18,7 +18,7 @@ import { createUser } from "./user.ts"; export const createMember = (data: MemberCreatePayload, guild: Guild) => { // Add the user to cache as well - cache.users.set(data.user.id, createUser(data.user)) + cache.users.set(data.user.id, createUser(data.user)); return { ...data, diff --git a/types/discord.ts b/types/discord.ts index f927877ea..f180651ed 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -1,5 +1,5 @@ import { Activity } from "./message.ts"; -import { Client_Status_Payload } from "./presence.ts"; +import { ClientStatusPayload } from "./presence.ts"; import { Partial_User } from "./guild.ts"; import { MemberCreatePayload } from "./member.ts"; @@ -211,7 +211,7 @@ export interface PresenceUpdatePayload { /** All user's current activity */ activities: Activity[]; /** The user's platform dependent status */ - client_status: Client_Status_Payload; + client_status: ClientStatusPayload; /** When the user has started boosting the guild */ premium_since?: string | null; /** This users guild nickname (if one is set) */ diff --git a/types/guild.ts b/types/guild.ts index d3cd69cb2..5a5247b2f 100644 --- a/types/guild.ts +++ b/types/guild.ts @@ -4,7 +4,7 @@ import { Permission } from "./permission.ts"; import { RoleData } from "./role.ts"; import { MemberCreatePayload } from "./member.ts"; import { Activity } from "./message.ts"; -import { Client_Status_Payload } from "./presence.ts"; +import { ClientStatusPayload } from "./presence.ts"; import { ChannelCreatePayload } from "./channel.ts"; export interface GuildRolePayload { @@ -567,7 +567,7 @@ export interface Presence { /** Either idle */ status: StatusType; activities: Activity[]; - client_status: Client_Status_Payload; + client_status: ClientStatusPayload; premium_since?: string | null; nick?: string | null; } diff --git a/types/presence.ts b/types/presence.ts index f520bd225..092edb5cf 100644 --- a/types/presence.ts +++ b/types/presence.ts @@ -1,6 +1,6 @@ import { StatusType } from "../types/discord.ts"; -export interface Client_Status_Payload { +export interface ClientStatusPayload { /** The user's status set for an active desktop (Windows, Linux, Mac) application session */ desktop?: StatusType;