From 5f75fc3e71603918c166b04872d2cf7235ce41d1 Mon Sep 17 00:00:00 2001 From: DjDeveloper <43033058+DjDeveloperr@users.noreply.github.com> Date: Fri, 12 Mar 2021 15:12:38 +0530 Subject: [PATCH] fix ffs --- src/structures/slash.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/slash.ts b/src/structures/slash.ts index ffcff03..ef793af 100644 --- a/src/structures/slash.ts +++ b/src/structures/slash.ts @@ -148,8 +148,8 @@ export class Interaction extends SnowflakeBase { if (op === undefined || op.value === undefined) return undefined as any if (op.type === SlashCommandOptionType.USER) { const u: InteractionUser = this.resolved.users[op.value] as any - if (this.resolved.members[op.value] !== undefined) u.member = this.resolved.members[op.value] as any - return u + if (this.resolved.members[op.value] !== undefined) u.member = this.resolved.members[op.value] + return u as any } else if (op.type === SlashCommandOptionType.ROLE) return this.resolved.roles[op.value] as any else if (op.type === SlashCommandOptionType.CHANNEL)