Fisch
Fisch
DIAdiscord.js - Imagine an app
Created by Fisch on 2/24/2024 in #djs-questions
How do I make the description and so on of the embed an option when putting in the command
const { SlashCommandBuilder } = require('discord.js'); const Discord = require('discord.js') const data = new SlashCommandBuilder() .setName("event") .setDescription("test!"); const specificTime = 1708762800 * 1000; const embed = new Discord.EmbedBuilder() .setDescription(__EVENT__\n__2v2 Fireball Fight Tournament__\n**-Server**: EU Practice (eu.minemen.club)\n**-Time**: <t:${specificTime / 1000}> (<t:${specificTime / 1000}:R>)\n-**Prize**: ACE [/disguise]) .setTimestamp(specificTime) .setColor('#f35b0d')
.setFooter({ text: 'Minemen Club'}); module.exports = { data, async execute(interaction) { await interaction.reply({embeds: [embed]}); }, };```
5 replies
DIAdiscord.js - Imagine an app
Created by Fisch on 2/24/2024 in #djs-questions
I wanted to ask for everything I need for this command
No description
12 replies
DIAdiscord.js - Imagine an app
Created by Fisch on 1/4/2024 in #djs-questions
Syntax error
async execute(interaction) { ^^^^^ SyntaxError: Unexpected token 'async' at internalCompileFunction (node:internal/vm:77:18) at wrapSafe (node:internal/modules/cjs/loader:1288:20) at Module._compile (node:internal/modules/cjs/loader:1340:27) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 Node.js v20.10.0
5 replies
DIAdiscord.js - Imagine an app
Created by Fisch on 1/3/2024 in #djs-questions
Wanted to register a command and got this error:
Wanted to register a command and got this error: Started refreshing application (/) commands. DiscordAPIError[50035]: Invalid Form Body 0.options[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (8, 10, 6, 1, 2, 4, 5, 11, 9, 3, 7). 0.options[1][UNION_TYPE_CHOICES]: Value of field "type" must be one of (8, 10, 6, 1, 2, 4, 5, 11, 9, 3, 7). at handleErrors (C:\Users\win 10\OneDrive\Desktop\FB\node_modules@discordjs\rest\dist\index.js:722:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async SequentialHandler.runRequest (C:\Users\win 10\OneDrive\Desktop\FB\node_modules@discordjs\rest\dist\index.js:1120:23) at async SequentialHandler.queueRequest (C:\Users\win 10\OneDrive\Desktop\FB\node_modules@discordjs\rest\dist\index.js:953:14) at async _REST.request (C:\Users\win 10\OneDrive\Desktop\FB\node_modules@discordjs\rest\dist\index.js:1266:22) at async C:\Users\win 10\OneDrive\Desktop\FB\register-commands.js:33:5 { requestBody: { files: undefined, json: [ [Object] ] }, rawError: { message: 'Invalid Form Body', code: 50035, errors: { '0': [Object] } }, code: 50035, status: 400, method: 'PUT', url:
18 replies
DIAdiscord.js - Imagine an app
Created by Fisch on 1/2/2024 in #djs-questions
Code is working but command isn't
So the code works, and the bot is online, but the command just doesn't appear to exist
34 replies
DIAdiscord.js - Imagine an app
Created by Fisch on 1/2/2024 in #djs-questions
Token problem
Everytime I start the bot it tells me that my token is invalid but it's not
55 replies
DIAdiscord.js - Imagine an app
Created by Fisch on 1/2/2024 in #djs-questions
I really would appreciate someone showing me how to make a discord bot, because I am really stuck an
I really would appreciate someone showing me how to make a discord bot, because I am really stuck and I tried like so many tutorials on youtube and still can't get it
125 replies