h4ze
h4ze
DIAdiscord.js - Imagine an app
Created by h4ze on 6/29/2024 in #djs-questions
mongodb and modals
Hello, is it possible tonlose a modal with data from Mongodb?
9 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 6/25/2024 in #djs-questions
List commands
Hello. Can i list command Like Client.commands or anything like?
10 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 6/15/2024 in #djs-questions
Help to the dev
No description
5 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 6/14/2024 in #djs-questions
Bot permissions help
No description
26 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/10/2024 in #djs-questions
Permissions
How can I check whether a specific user has, for example, a manage guild on the corresponding server?
35 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/4/2024 in #djs-questions
Command Map
async execute(interaction, client) {
const { commands } = interaction.client;
applog('error', commands.map(command => command.name).join(', '))
const embed = new EmbedBuilder() .setTitle('Here's a list of all my commands:') .addFields( { name: 'Commands:', value: commands.map(command => command.name).join(', ') }, { name: '\u200B', value: For help on a specific command send: \help [command name]``} ) await interaction.reply({ embeds: [embed] }).then(msg => { setTimeout(() => msg.delete(), 15000) }); }, Where is my mistake? The only response in the console is: , , , , , Thank you very much for your help
5 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/3/2024 in #djs-questions
New Voice Channel id?
client.guild.channels.create({ name: vcNewChannelName, type: ChannelType.GuildVoice, parent: vcCategorie, permissionOverwrites:[{ id: client.member.id, allow: [PermissionsBitField.Flags.ManageChannels] },{ id: client.guild.id, deny:[PermissionsBitField.Flags.ManageChannels] }] }); Hello, is it possible to get the ID of a newly created channel?
7 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/2/2024 in #djs-questions
how write data to json
Is there any solution? My way looks not good
4 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/2/2024 in #djs-questions
list all commands in array
` `` async execute(interaction) {
const foldersPath = path.join(dirname);
fs.readdir(
dirname, (err, files) => { if(err) console.error(err); let jsfiles = files.filter(f => f.split(".").pop() === "js"); if(jsfiles.length <= 0) { applog("No commands to load!"); return; } const filesArray = new Array(); jsfiles.forEach((f, i) => { const props = require(__dirname + '/' + f); applog(props.data.name + ' | usage: ' + props.usage) const filesArray = [props.data.name, props.data.description, props.usage] }); applog(filesArray) });
interaction.reply('nur bis her').then(msg => { setTimeout(() => msg.delete(), deleteInSlow) }); }, ``` I try to output all commands in an array but I can't get the array to display at that point. As soon as I reply with the bot inside the foreach, it always gives me the error message interaction not found. Thank you for your help
8 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/1/2024 in #djs-questions
Properties of undefined „send"
No description
8 replies
DIAdiscord.js - Imagine an app
Created by h4ze on 5/1/2024 in #djs-questions
reading guilds TypeError
No description
18 replies