mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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:
|
||||
return component.components;
|
||||
case ComponentType.Section:
|
||||
return [component.accessory];
|
||||
return [...component.components, component.accessory];
|
||||
default:
|
||||
return [component];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user