diff --git a/structures/channel.ts b/structures/channel.ts index 2674c8678..a1e953058 100644 --- a/structures/channel.ts +++ b/structures/channel.ts @@ -24,8 +24,6 @@ import { logYellow } from "../utils/logger.ts"; export function createChannel(data: ChannelCreatePayload, guildID?: string) { const channel = { ...data, - /** The raw channel data */ - raw: data, /** The guild id of the channel if it is a guild channel. */ guildID: guildID || data.guild_id, /** The id of the last message sent in this channel */ diff --git a/structures/guild.ts b/structures/guild.ts index 11a6753f3..3e6243bef 100644 --- a/structures/guild.ts +++ b/structures/guild.ts @@ -34,8 +34,6 @@ import { requestAllMembers } from "../module/shardingManager.ts"; export const createGuild = (data: CreateGuildPayload) => { const guild = { ...data, - /** The raw create guild payload data. */ - raw: data, /** The owner id of the guild. */ ownerID: data.owner_id, /** The afk channel id for this guild. */ diff --git a/structures/member.ts b/structures/member.ts index 92ec757a2..ebe0eead8 100644 --- a/structures/member.ts +++ b/structures/member.ts @@ -22,8 +22,6 @@ export const createMember = (data: MemberCreatePayload, guild: Guild) => { return { ...data, - /** The complete raw data from the member create payload */ - raw: data, /** When the user joined the guild */ joinedAt: Date.parse(data.joined_at), /** When the user used their nitro boost on the server. */ diff --git a/structures/message.ts b/structures/message.ts index b27af644a..54a694b9f 100644 --- a/structures/message.ts +++ b/structures/message.ts @@ -13,7 +13,6 @@ import { cache } from "../utils/cache.ts"; export function createMessage(data: MessageCreateOptions) { const message = { ...data, - raw: data, channelID: data.channel_id, guildID: data.guild_id, mentionsEveryone: data.mentions_everyone, diff --git a/structures/role.ts b/structures/role.ts index f7c6194ae..e8e6a4574 100644 --- a/structures/role.ts +++ b/structures/role.ts @@ -2,8 +2,6 @@ import { RoleData } from "../types/role.ts"; export const createRole = (data: RoleData) => ({ ...data, - /** The entire raw Role data */ - raw: data, /** The @ mention of the role in a string. */ mention: `<@&${data.id}>`, });