Skully
Skully
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
Like this? Sorry if I can't do some simple things, I'm just starting out.
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
.setCategories([
{
name: 'Something',
},
]),
async execute(interaction) {
await interaction.reply('Pong!');
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
.setCategories([
{
name: 'Something',
},
]),
async execute(interaction) {
await interaction.reply('Pong!');
},
};
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
Do you have a guide or can you tell me how to set the category property on this order, for example please?
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
It is only present in the Github version
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
Because in the original guide there is no category property.
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
The category property does not correspond to the administration and informations folders located in the commands folder?
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
And there's no indication in the guide of the command to be performed for the path to be correct.
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
I've seen this but I don't know how to define the path correctly. I tried with the following commands but when I run it it tells me that no command was found - /reload ./commands/informations/ping.js - /reload commands/informations/ping.js - /reload ./informations/ping.js - /reload informations/ping.js
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/27/2023 in #djs-questions
Reload Commands
So is it a problem in the command I performed or in the code?
28 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/9/2023 in #djs-questions
Check Ban list
Okay, I understand. Thank you very much for your help
9 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/9/2023 in #djs-questions
Check Ban list
9 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/9/2023 in #djs-questions
Check Ban list
So this way it's okay ?
guild.members.ban(user, {
.reason: 'somethings'
})
guild.members.ban(user, {
.reason: 'somethings'
})
9 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/9/2023 in #djs-questions
Check Ban list
Thank you. And if I want to add a reason to the ban with guild.members.ban, I have to write it like this?
guild.members.ban(user, [
.reason: 'somethings'
])
guild.members.ban(user, [
.reason: 'somethings'
])
9 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/9/2023 in #djs-questions
Check Ban list
Between guild.members.ban and guild.bans.create
9 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/9/2023 in #djs-questions
Check Ban list
9 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/4/2023 in #djs-questions
Edit message according to selected value
Yes, I understand what you've explained to me, but the hardest part was for you to understand me xD (I'm French, so I don't speak English well).
36 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/4/2023 in #djs-questions
Edit message according to selected value
Okay, I understand.
36 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/4/2023 in #djs-questions
Edit message according to selected value
And thank you very much, everything works as expected ❤️
36 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/4/2023 in #djs-questions
Edit message according to selected value
What do you mean by "temporary"? And okay, I'll do my research on that, but for now I'll leave this bit of code in the main file.
36 replies
DIAdiscord.js - Imagine a bot
Created by Skully on 8/4/2023 in #djs-questions
Edit message according to selected value
And since we've put the code in this file, I can delete it from the other one (help.js).
36 replies