Mysterious_Dev
Mysterious_Dev
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 8/6/2023 in #djs-questions
Get Guild Rules Channel
Thanks dude ^^
4 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 6/14/2023 in #djs-questions
Get interaction of an interaction
Nice 👍. Thanks for your help ^^
5 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 6/14/2023 in #djs-questions
Get interaction of an interaction
This can let me get the original message where I used the context menu action ?
5 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 4/25/2023 in #djs-questions
Add field to Guild Rest
Hmmm okay, thanks anyway ^^
8 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 4/25/2023 in #djs-questions
Add field to Guild Rest
8 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 4/25/2023 in #djs-questions
Add field to Guild Rest
The error :
[DICT_TYPE_CONVERT]: Only dictionaries may be used in a DictType
at handleErrors (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:1021:23)
at async SequentialHandler.queueRequest (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:1387:22) {
requestBody: { files: undefined, json: [ [Object] ] },
rawError: {
code: 50035,
errors: { _errors: [Array] },
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'PATCH',
url: 'https://discord.com/api/v10/guilds/GuildID/member-verification'
}
[DICT_TYPE_CONVERT]: Only dictionaries may be used in a DictType
at handleErrors (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:1021:23)
at async SequentialHandler.queueRequest (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Les-Moddeurs-Francais\Moddeur-Ultime\node_modules\@discordjs\rest\dist\index.js:1387:22) {
requestBody: { files: undefined, json: [ [Object] ] },
rawError: {
code: 50035,
errors: { _errors: [Array] },
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'PATCH',
url: 'https://discord.com/api/v10/guilds/GuildID/member-verification'
}
8 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 4/25/2023 in #djs-questions
Add field to Guild Rest
Hello ! When I try to modify the membership screening, I get this error and I don't know why :/ My code :
const bodyRules = [];

bodyRules.push({
enabled: true,
form_fields: [
{
field_type: "TERMS",
label: "Read and agree to the server rules",
values: [
"Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.",
"No spam or self-promotion (server invites, advertisements, etc) without permission from a staff member. This includes DMing fellow members."
],
required: true
}
],
description: "Test Server"
});

await rest.patch(`/guilds/${GUILD_ID}/member-verification`, { body: bodyRules });
const bodyRules = [];

bodyRules.push({
enabled: true,
form_fields: [
{
field_type: "TERMS",
label: "Read and agree to the server rules",
values: [
"Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.",
"No spam or self-promotion (server invites, advertisements, etc) without permission from a staff member. This includes DMing fellow members."
],
required: true
}
],
description: "Test Server"
});

await rest.patch(`/guilds/${GUILD_ID}/member-verification`, { body: bodyRules });
8 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 4/25/2023 in #djs-questions
Add field to Guild Rest
I keep this thread open until I success. Thanks anyway ^^
8 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 4/25/2023 in #djs-questions
Add field to Guild Rest
Yeah, but it's been dedocumented for 2 years already and I say that even if it changes tomorrow, well I would have already learned how to do that in this case ^^.
8 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/30/2023 in #djs-questions
Get author of thread channel
Thanks ^^
4 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
Thanks ! I forgot I created that an interface for slash command (parameter typed with CommandInteraction insteadof ChatInputCommandInteraction). Sorry for the inconvenience ^^'.
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
of execute function ?
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
So, else than set "strict" in tsconfig, do I need to do someting else to have the possibility to use getString ?
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
slash command interaction
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
What ??
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/20/2023 in #djs-questions
[TypeScript] Non required option for slash commands
11 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/14/2023 in #djs-questions
Did Discord.JS support modifications for rules screening (and how can I do that) ?
Damn... Thanks anyway ^^
4 replies
DIAdiscord.js - Imagine an app
Created by Mysterious_Dev on 3/13/2023 in #djs-questions
ActionRowBuilder error for Modal
Thanks dude ^^.
5 replies