Method
Method
Explore posts from servers
CDCloudflare Developers
Created by Method on 10/4/2023 in #general-help
how do I block specific strings in my url?
anyone?
4 replies
CDCloudflare Developers
Created by Method on 10/4/2023 in #general-help
how do I block specific strings in my url?
I figured this out, how how do I auto ban them?
4 replies
DIdiscord.js - Imagine ❄
Created by Method on 8/8/2023 in #djs-questions
Running slash command returns "ExpectedConstraintError > s.number.lessThanOrEqual'
oh haha yeah I edited it from its real name so yes that is a difference you are not wrong
5 replies
DIdiscord.js - Imagine ❄
Created by Method on 8/8/2023 in #djs-questions
Running slash command returns "ExpectedConstraintError > s.number.lessThanOrEqual'
100% did run it just didnt paste the WHOLE command in here only what was relevant, that said issue is there is a 25 field item limit. Thanks 🙂
5 replies
DIdiscord.js - Imagine ❄
Created by Method on 8/8/2023 in #djs-questions
Running slash command returns "ExpectedConstraintError > s.number.lessThanOrEqual'
I thhink it has to do with my EmbedBuilder
await interaction.deferReply({ ephemeral: true });

const termToFind= interaction.options.getString('Term');

let t = await search(termToFind);



if(t.length > 0){
let msgEmbed = new EmbedBuilder()
.setTitle(t.length + " Terms found")
.setDescription("List of found terms")
.setColor("#FFC300")

let ind = 1;

for (const s of t){

msgEmbed.addFields({ name: (ind + '. ' + s), value: ' ' });

ind++

}

await interaction.editReply({
embeds: [msgEmbed]
});
}
else{
await interaction.editReply({
content: `Nothing found.`,
});
}
await interaction.deferReply({ ephemeral: true });

const termToFind= interaction.options.getString('Term');

let t = await search(termToFind);



if(t.length > 0){
let msgEmbed = new EmbedBuilder()
.setTitle(t.length + " Terms found")
.setDescription("List of found terms")
.setColor("#FFC300")

let ind = 1;

for (const s of t){

msgEmbed.addFields({ name: (ind + '. ' + s), value: ' ' });

ind++

}

await interaction.editReply({
embeds: [msgEmbed]
});
}
else{
await interaction.editReply({
content: `Nothing found.`,
});
}
5 replies