|
|
|
@ -186,6 +186,8 @@ const imageMenu = async (
|
|
|
|
|
|
|
|
|
|
|
|
const embed = new EmojiEmbed()
|
|
|
|
const embed = new EmojiEmbed()
|
|
|
|
.setTitle("Image Settings")
|
|
|
|
.setTitle("Image Settings")
|
|
|
|
|
|
|
|
.setStatus("Success")
|
|
|
|
|
|
|
|
// .setEmoji("") // TODO
|
|
|
|
.setDescription(
|
|
|
|
.setDescription(
|
|
|
|
`${emojiFromBoolean(current.NSFW)} **NSFW**\n` + `${emojiFromBoolean(current.size)} **Size**\n`
|
|
|
|
`${emojiFromBoolean(current.NSFW)} **NSFW**\n` + `${emojiFromBoolean(current.size)} **Size**\n`
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@ -657,7 +659,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")
|
|
|
|
@ -689,30 +691,27 @@ const mentionMenu = async (
|
|
|
|
: "") +
|
|
|
|
: "") +
|
|
|
|
"\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.length > 0
|
|
|
|
|
|
|
|
? `Member has role: ${listToAndMore(
|
|
|
|
|
|
|
|
current.allowed.roles.map((r) => `<@&${r}>`),
|
|
|
|
current.allowed.roles.map((r) => `<@&${r}>`),
|
|
|
|
3
|
|
|
|
3
|
|
|
|
)}\n`
|
|
|
|
)}\n`
|
|
|
|
: ""
|
|
|
|
: "") +
|
|
|
|
}` +
|
|
|
|
(current.allowed.channels.length > 0
|
|
|
|
`> ${
|
|
|
|
? `> In channel: ${listToAndMore(
|
|
|
|
current.allowed.channels.length > 0
|
|
|
|
|
|
|
|
? `In channel: ${listToAndMore(
|
|
|
|
|
|
|
|
current.allowed.channels.map((c) => `<#${c}>`),
|
|
|
|
current.allowed.channels.map((c) => `<#${c}>`),
|
|
|
|
3
|
|
|
|
3
|
|
|
|
)}\n`
|
|
|
|
)}\n`
|
|
|
|
: ""
|
|
|
|
: "") +
|
|
|
|
}`
|
|
|
|
(current.allowed.users.length == 0 || current.allowed.roles.length == 0 || current.allowed.channels.length == 0 ?
|
|
|
|
|
|
|
|
"> *No exceptions*\n" : ""
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.setStatus("Success")
|
|
|
|
.setStatus("Success")
|
|
|
|
.setEmoji("GUILD.SETTINGS.GREEN")
|
|
|
|
.setEmoji("GUILD.SETTINGS.GREEN")
|
|
|
|
|