Fixed grammar and embeds

pull/72/head
pineafan 3 years ago
parent 10ac55461d
commit 9ca34cd177
Signed by: Pinea
GPG Key ID: E5E1C2D43B0E4AB3

@ -634,7 +634,7 @@ const mentionMenu = async (
const allowedMenu = new ActionRowBuilder<StringSelectMenuBuilder>().addComponents( const allowedMenu = new ActionRowBuilder<StringSelectMenuBuilder>().addComponents(
new StringSelectMenuBuilder() new StringSelectMenuBuilder()
.setCustomId("allowed") .setCustomId("allowed")
.setPlaceholder("Edit exceptions") .setPlaceholder("Edit allowed list")
.addOptions( .addOptions(
new StringSelectMenuOptionBuilder() new StringSelectMenuOptionBuilder()
.setLabel("Users") .setLabel("Users")
@ -660,36 +660,33 @@ const mentionMenu = async (
`${emojiFromBoolean(current.roles)} **Roles**\n` + `${emojiFromBoolean(current.roles)} **Roles**\n` +
(current.allowed.rolesToMention.length > 0 (current.allowed.rolesToMention.length > 0
? `> *Except for ${listToAndMore( ? `> *Except for ${listToAndMore(
current.allowed.rolesToMention.map((r) => `<@&${r}>`), current.allowed.rolesToMention.map((r) => `<@&${r}>`),
3 3
)}*\n` )}*\n`
: "") + : "") +
"\n" + "\n" +
`Except if...\n` + `Except if...\n` +
`> ${ (current.allowed.users.length > 0
current.allowed.users.length > 0 ? `> Member is: ${listToAndMore(
? `Member is: ${listToAndMore( current.allowed.users.map((u) => `<@${u}>`),
current.allowed.users.map((u) => `<@${u}>`), 3
3 )}\n`
)}\n` : "") +
: "" (current.allowed.roles.length > 0
}` + ? `> Member has role: ${listToAndMore(
`> ${ current.allowed.roles.map((r) => `<@&${r}>`),
current.allowed.roles.length > 0 3
? `Member has role: ${listToAndMore( )}\n`
current.allowed.roles.map((r) => `<@&${r}>`), : "") +
3 (current.allowed.channels.length > 0
)}\n` ? `> In channel: ${listToAndMore(
: "" current.allowed.channels.map((c) => `<#${c}>`),
}` + 3
`> ${ )}\n`
current.allowed.channels.length > 0 : "") +
? `In channel: ${listToAndMore( (current.allowed.users.length == 0 || current.allowed.roles.length == 0 || current.allowed.channels.length == 0 ?
current.allowed.channels.map((c) => `<#${c}>`), "> *No exceptions*\n" : ""
3 )
)}\n`
: ""
}`
) )
.setStatus("Success") .setStatus("Success")
.setEmoji("GUILD.SETTINGS.GREEN"); .setEmoji("GUILD.SETTINGS.GREEN");

Loading…
Cancel
Save