This commit is contained in:
Ashley Graves 2024-10-11 15:51:09 +02:00
parent 657566dd6a
commit de3c094833

View file

@ -18,8 +18,8 @@ for (const site of Object.keys(Booru.sites)) {
const defaultBooru = "gelbooru.com"; const defaultBooru = "gelbooru.com";
const ratings = [ const ratings = [
"rating:general", "rating:general",
"rating:questionable",
"rating:sensitive", "rating:sensitive",
"rating:questionable",
"rating:explicit", "rating:explicit",
]; ];
@ -36,7 +36,7 @@ const data = new SlashCommandBuilder()
builder // builder //
.setName("rating") .setName("rating")
.setRequired(false) .setRequired(false)
.setDescription("Image rating (default: safe)") .setDescription("Image rating (default: general)")
.setChoices(ratings.map(r => { var x = r.split(":")[1]; var s = x[0].toUpperCase() + x.slice(1); return { name: s, value: r } })) .setChoices(ratings.map(r => { var x = r.split(":")[1]; var s = x[0].toUpperCase() + x.slice(1); return { name: s, value: r } }))
) )
.addStringOption(builder => .addStringOption(builder =>