This commit is contained in:
Ashley Graves 2024-10-12 00:49:17 +02:00
parent 2e2f9c9bcd
commit a9cf2be98b

View file

@ -16,12 +16,6 @@ for (const site of Object.keys(Booru.sites)) {
} }
const defaultBooru = "gelbooru.com"; const defaultBooru = "gelbooru.com";
const ratings = [
"rating:general",
"rating:sensitive",
"rating:questionable",
"rating:explicit",
];
const data = new SlashCommandBuilder() const data = new SlashCommandBuilder()
.setName("booru") .setName("booru")
@ -32,13 +26,6 @@ const data = new SlashCommandBuilder()
.setRequired(true) .setRequired(true)
.setDescription("Tags to search for") .setDescription("Tags to search for")
) )
.addStringOption(builder =>
builder //
.setName("rating")
.setRequired(false)
.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 } }))
)
.addStringOption(builder => .addStringOption(builder =>
builder // builder //
.setName("booru") .setName("booru")