move roles picker blurb below the embed card
This commit is contained in:
@@ -1532,14 +1532,14 @@ async function handleRoles(message) {
|
|||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(i === 0 ? "Game roles" : "Game roles (continued)")
|
.setTitle(i === 0 ? "Game roles" : "Game roles (continued)")
|
||||||
.setDescription(chunks[i]);
|
.setDescription(chunks[i]);
|
||||||
const payload = { embeds: [embed] };
|
await message.reply({ embeds: [embed] });
|
||||||
if (i === chunks.length - 1 && picker.components.length > 0) {
|
}
|
||||||
payload.components = picker.components;
|
|
||||||
payload.content = picker.overflow
|
if (picker.components.length > 0) {
|
||||||
|
const content = picker.overflow
|
||||||
? "Use the dropdown below to add yourself to a role (showing the first " + ROLE_PICKER_MAX + " alphabetically - use !role GAME for any others):"
|
? "Use the dropdown below to add yourself to a role (showing the first " + ROLE_PICKER_MAX + " alphabetically - use !role GAME for any others):"
|
||||||
: "Click on a button below to add yourself to a role:";
|
: "Click on a button below to add yourself to a role:";
|
||||||
}
|
await message.reply({ content: content, components: picker.components });
|
||||||
await message.reply(payload);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user