mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-12-21 21:31:05 +01:00
fix: split array to 5 if buttons
This commit is contained in:
parent
f100b39a7a
commit
38166658f3
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ export default async function (ctx: Context, data: Data) {
|
|||
}
|
||||
|
||||
const components: APIActionRowComponent<APIMessageActionRowComponent>[] = [];
|
||||
const array = splitArray(data.roleIds, 25);
|
||||
const array = splitArray(data.roleIds, data.selecting === "buttons" ? 5 : 25);
|
||||
for (const items of array) {
|
||||
const actionRow = new ActionRowBuilder();
|
||||
|
||||
|
|
Loading…
Reference in a new issue