Palacelaw
Palacelaw
DIAdiscord.js - Imagine an app
Created by Palacelaw on 12/24/2023 in #djs-voice
PLS FIX IT IN THE CHANL FOR 1S AND LEVSconst { SlashCommandBuilder } = require('discord.js');const
24 replies
DIAdiscord.js - Imagine an app
Created by Palacelaw on 12/24/2023 in #djs-voice
HOW TO MAKE A MUISC BOT
PLS HELP
3 replies
DIAdiscord.js - Imagine an app
Created by Palacelaw on 12/16/2023 in #djs-voice
i so i need a muisc slash command and i need it to wrck i can give my code but it dos not wrck
if you can fix pls tell me code const { SlashCommandBuilder } = require('@discordjs/builders'); const { joinVoiceChannel, createAudioPlayer, createAudioResource, AudioPlayerStatus } = require('@discordjs/voice'); const ytdl = require('ytdl-core'); const command = { data: new SlashCommandBuilder() .setName('joinvc') .setDescription('Joins a voice channel and plays Rick Astley - Never Gonna Give You Up'), async execute(interaction) { const voiceChannel = interaction.member.voice.channel; if (!voiceChannel) { return interaction.reply('You need to be in a voice channel to use this command!'); } const connection = joinVoiceChannel({ channelId: voiceChannel.id, guildId: interaction.guild.id, adapterCreator: interaction.guild.voiceAdapterCreator, }); const player = createAudioPlayer(); const stream = ytdl('https://www.youtube.com/watch?v=dQw4w9WgXcQ', { filter: 'audioonly' }); const resource = createAudioResource(stream); player.play(resource); connection.subscribe(player); player.on(AudioPlayerStatus.Playing, () => { interaction.reply('Now playing: Rick Astley - Never Gonna Give You Up'); }); player.on('error', error => { console.error(Error: ${error.message}); }); } }; module.exports = command;
12 replies
DIAdiscord.js - Imagine an app
Created by Palacelaw on 12/16/2023 in #djs-voice
music command
How to make I try but it doesn’t work
15 replies
DIAdiscord.js - Imagine an app
Created by Palacelaw on 11/26/2023 in #djs-questions
how do i fix
Exception has occurred: TypeError: Cannot read properties of undefined (reading 'name') at Object.<anonymous> (C:\Users\jacks\OneDrive\Desktop\discord\index.js:14:36) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32) at Module._load (node:internal/modules/cjs/loader:938:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47
13 replies
DIAdiscord.js - Imagine an app
Created by Palacelaw on 11/24/2023 in #djs-questions
how did I make a bot I do not know how to code
What
4 replies