igzh
igzh
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by igzh on 5/25/2024 in #djs-questions
TypeError: user.permissionsIn is not a function
kk thanks
8 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/25/2024 in #djs-questions
TypeError: user.permissionsIn is not a function
i keep getting this error
8 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/25/2024 in #djs-questions
TypeError: user.permissionsIn is not a function
can anyone help me
8 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/21/2024 in #djs-questions
unknown interactions
here is the code
// commands/itemsdat.js

const { SlashCommandBuilder } = require('@discordjs/builders');
const { AttachmentBuilder } = require('discord.js'); // Use AttachmentBuilder
const path = require('path');

module.exports = {
data: new SlashCommandBuilder()
.setName('itemsdat')
.setDescription('Sends the items data file.'),
async execute(interaction) {
try {
const file = path.join(__dirname, '../file/itemdat/items.dat'); // Adjusted path
const attachment = new AttachmentBuilder(file); // Use AttachmentBuilder
await interaction.reply({ files: [attachment] });
} catch (error) {
console.error(error);
await interaction.reply('Failed to send the items data file.');
}
},
};
// commands/itemsdat.js

const { SlashCommandBuilder } = require('@discordjs/builders');
const { AttachmentBuilder } = require('discord.js'); // Use AttachmentBuilder
const path = require('path');

module.exports = {
data: new SlashCommandBuilder()
.setName('itemsdat')
.setDescription('Sends the items data file.'),
async execute(interaction) {
try {
const file = path.join(__dirname, '../file/itemdat/items.dat'); // Adjusted path
const attachment = new AttachmentBuilder(file); // Use AttachmentBuilder
await interaction.reply({ files: [attachment] });
} catch (error) {
console.error(error);
await interaction.reply('Failed to send the items data file.');
}
},
};
3 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/21/2024 in #djs-questions
duplicated commands
thanks for helping
12 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/21/2024 in #djs-questions
duplicated commands
kk
12 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/21/2024 in #djs-questions
duplicated commands
so should i register 1 only
12 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/21/2024 in #djs-questions
duplicated commands
even if i reset them await rest.put( Routes.applicationCommands(clientId), { body: [] } // Resetting global commands );
12 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/21/2024 in #djs-questions
duplicated commands
12 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
oo okay thanks
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
cuz its less than 25
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
?
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
even if 3x8
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
oohh
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
when i add more than 12 totalbuttons it gives me the up error
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
No description
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 5/1/2024 in #djs-questions
Buttons error
here is the code
10 replies
DIAdiscord.js - Imagine an app
Created by igzh on 4/30/2024 in #djs-questions
Minesweeper code error
ty it worked
16 replies
DIAdiscord.js - Imagine an app
Created by igzh on 4/30/2024 in #djs-questions
Minesweeper code error
cuz its seems okay
16 replies
DIAdiscord.js - Imagine an app
Created by igzh on 4/30/2024 in #djs-questions
Minesweeper code error
can check my code
16 replies