fix ffs
This commit is contained in:
parent
c836ca8f42
commit
5f75fc3e71
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue