MoinAmMorgen
MoinAmMorgen
DIAdiscord.js - Imagine an app
Created by Zenyd on 3/9/2024 in #djs-questions
How can i make an add role command
This explains everything pretty well
9 replies
DIAdiscord.js - Imagine an app
Created by Zenyd on 3/9/2024 in #djs-questions
How can i make an add role command
This is a example code how you setup options
module.exports = {
data: new SlashCommandBuilder()
.setName('ban')
.setDescription('Select a member and ban them.')
.addUserOption(option =>
option
.setName('target')
.setDescription('The member to ban')
.setRequired(true))
.addStringOption(option =>
option
.setName('reason')
.setDescription('The reason for banning'))
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
.setDMPermission(false),
};
module.exports = {
data: new SlashCommandBuilder()
.setName('ban')
.setDescription('Select a member and ban them.')
.addUserOption(option =>
option
.setName('target')
.setDescription('The member to ban')
.setRequired(true))
.addStringOption(option =>
option
.setName('reason')
.setDescription('The reason for banning'))
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
.setDMPermission(false),
};
9 replies
DIAdiscord.js - Imagine an app
Created by Zenyd on 3/9/2024 in #djs-questions
How can i make an add role command
Create the command with two required options, user name and role to add, in the interactionCreate get the user from the option and add the role from the option to the user
9 replies
DIAdiscord.js - Imagine an app
Created by Tissemyren on 2/26/2024 in #djs-questions
I don't really understand the registering slash commands part of the guide
https://discordjs.guide/creating-your-bot/command-handling.html#loading-command-files This guide from the official website doesn’t say anything about an deploy commands file
11 replies
DIAdiscord.js - Imagine an app
Created by Tissemyren on 2/26/2024 in #djs-questions
I don't really understand the registering slash commands part of the guide
What don’t you understand? Do you get an error when running that code or what do you want to know?
11 replies
DIAdiscord.js - Imagine an app
Created by Toxicsweater on 2/23/2024 in #djs-questions
create channel
If you’re on v14, use ChannelType.GuildText
15 replies
DIAdiscord.js - Imagine an app
Created by Toxicsweater on 2/23/2024 in #djs-questions
create channel
So I just went with v14
15 replies
DIAdiscord.js - Imagine an app
Created by Toxicsweater on 2/23/2024 in #djs-questions
create channel
Yeah, but he didn’t say which version he’s on
15 replies
DIAdiscord.js - Imagine an app
Created by Toxicsweater on 2/23/2024 in #djs-questions
create channel
You can’t set the channel type with a string either
15 replies
DIAdiscord.js - Imagine an app
Created by Toxicsweater on 2/23/2024 in #djs-questions
create channel
Or just screenshot the entire error and send it in here
15 replies
DIAdiscord.js - Imagine an app
Created by Toxicsweater on 2/23/2024 in #djs-questions
create channel
Does it say which line the error is on?
15 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 9/6/2023 in #djs-questions
Button confirmation system
Alr thank you
8 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 9/6/2023 in #djs-questions
Button confirmation system
8 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 9/6/2023 in #djs-questions
Button confirmation system
v16.20.2
8 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 9/6/2023 in #djs-questions
Button confirmation system
8 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 4/20/2023 in #djs-questions
Webhooks
m is defined as a message of an message event
5 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 4/20/2023 in #djs-questions
Webhooks
I tried using this from the Discord Documentation, but it didnt console log anything
5 replies
DIAdiscord.js - Imagine an app
Created by MoinAmMorgen on 4/20/2023 in #djs-questions
Webhooks
5 replies
DIAdiscord.js - Imagine an app
Created by Hessel on 3/11/2023 in #djs-questions
The application did not respond
Do you get an error?
10 replies