mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
fix: spread out section components next to accessory
This commit is contained in:
@@ -228,7 +228,7 @@ function findComponentByCustomId(components, customId) {
|
|||||||
case ComponentType.ActionRow:
|
case ComponentType.ActionRow:
|
||||||
return component.components;
|
return component.components;
|
||||||
case ComponentType.Section:
|
case ComponentType.Section:
|
||||||
return [component.accessory];
|
return [...component.components, component.accessory];
|
||||||
default:
|
default:
|
||||||
return [component];
|
return [component];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user