mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
fix(ThreadChannel): better property handling (#6172)
This commit is contained in:
@@ -121,7 +121,9 @@ class CommandInteraction extends Interaction {
|
||||
if (member) result.member = this.guild?.members._add({ user, ...member }) ?? member;
|
||||
|
||||
const channel = resolved.channels?.[option.value];
|
||||
if (channel) result.channel = this.client.channels._add(channel, this.guild) ?? channel;
|
||||
if (channel) {
|
||||
result.channel = this.client.channels._add(channel, this.guild, { fromInteraction: true }) ?? channel;
|
||||
}
|
||||
|
||||
const role = resolved.roles?.[option.value];
|
||||
if (role) result.role = this.guild?.roles._add(role) ?? role;
|
||||
|
||||
Reference in New Issue
Block a user