vizzielli
vizzielli
DIAdiscord.js - Imagine an app
Created by vizzielli on 3/19/2024 in #djs-questions
14.14.1 get deleted thread infos
Hi, thanks for the reply. Do you mean manually?
5 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/27/2024 in #djs-questions
Wrong guild.memberCount?
Just for archive purpose, instead to wait for some event, i run this once:
console.log(client.guilds.cache.map(guild => guild.id));
console.log(client.guilds.cache.map(guild => guild.id));
Than use this for any old server to leave:
client.guilds.cache.get('here-guild-to-leave-id').leave();
client.guilds.cache.get('here-guild-to-leave-id').leave();
Thanks again.
13 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/27/2024 in #djs-questions
Wrong guild.memberCount?
👍👍
13 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/27/2024 in #djs-questions
Wrong guild.memberCount?
Ye added now, but this should work to let it leave any server during time, not?
if (obj.guild.id !== 'my-server-id' {
obj.guild.leave();
}
if (obj.guild.id !== 'my-server-id' {
obj.guild.leave();
}
Thank you!
13 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/27/2024 in #djs-questions
Wrong guild.memberCount?
It makes sense. It used to be in some unused servers, probably the best bet is to kick it from any server considering I want to use it now only in this one. There's a way to let the bot leave all servers but not the one I want (serving it the right server id)?
13 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/27/2024 in #djs-questions
Wrong guild.memberCount?
Uhm, do you mean it may come from a different server?
13 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/27/2024 in #djs-questions
Wrong guild.memberCount?
No description
13 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 2/21/2024 in #djs-questions
Info about guildMembersAdd
No description
3 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
i thought i can use it inside modals
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
oh yes, so thats the problem
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
[email protected] /home/user/bot-v14

user@host:~/bot-v14$ node -v
v16.16.0
[email protected] /home/user/bot-v14

user@host:~/bot-v14$ node -v
v16.16.0
using the old one without "String" theres another error:
requestBody: { files: undefined, json: { type: 9, data: [Object] } },
1|index | rawError: {
1|index | code: 50035,
1|index | errors: { data: [Object] },
1|index | message: 'Invalid Form Body'
1|index | },
1|index | code: 50035,
1|index | status: 400,
1|index | method: 'POST',
1|index | url: 'https://discord.com/api/v10/interactions/[...]
requestBody: { files: undefined, json: { type: 9, data: [Object] } },
1|index | rawError: {
1|index | code: 50035,
1|index | errors: { data: [Object] },
1|index | message: 'Invalid Form Body'
1|index | },
1|index | code: 50035,
1|index | status: 400,
1|index | method: 'POST',
1|index | url: 'https://discord.com/api/v10/interactions/[...]
options available are 5 (not more) the thing it makes hard for me to fix this is because im never sure when the changes come in. sometimes when i start from working code, made a change, than theres an error, i revert the changes to the previous working files, and it start to not show the commands at all.. i use to: pm2 restart the app.js theres better ways to avoid issues like this? because if i can jump that thing i think i can try to solve this in a better way...
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
got it: StringSelectMenuBuilder is not defined. Than if I add it at the top ( const {here} = require ds.js;, it become: StringSelectMenuBuilder is not a constructor
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
oh im looking at realtime logs on pm2 monit but nothing new comes
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
you mean what I see as error? was in comment, this one: The application did not respond
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
A bit stuck with this:
//this works
const something = new TextInputBuilder()
.setCustomId('something')
.setLabel("Paste something here")
.setStyle(TextInputStyle.Paragraph);

//this return: The application did not respond
const something = new StringSelectMenuBuilder()
.setCustomId('something')
.setPlaceholder('Choose from the list...')
.addOptions(
{
default: true,
label: 'Option1',
description: 'Hey boy!',
value: '0',
}, {
{
label: 'Option2',
description: 'Hey girl!',
value: '1',
},
);
//this works
const something = new TextInputBuilder()
.setCustomId('something')
.setLabel("Paste something here")
.setStyle(TextInputStyle.Paragraph);

//this return: The application did not respond
const something = new StringSelectMenuBuilder()
.setCustomId('something')
.setPlaceholder('Choose from the list...')
.addOptions(
{
default: true,
label: 'Option1',
description: 'Hey boy!',
value: '0',
}, {
{
label: 'Option2',
description: 'Hey girl!',
value: '1',
},
);
When I try select/options it stop working.. By docs cant see anything wrong... I miss something?
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
🤓 ok I missed rly good things since the last time. Thank you!
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
But i need msg content to get user multiline params... the last time i tried seems not possibile: something changed for this? I remember something about bigger param data that would accept multiline params but dont know if it become a thing yet
12 replies
DIAdiscord.js - Imagine an app
Created by vizzielli on 11/4/2022 in #djs-questions
Let bot join forum threads
Ye I thiugh too it wasnt needed but seems it work like this atm.. thanks for the replies, ill try to implement it asap 👍 (slash commands, in the other hand, work without the join)
12 replies