Awashcard0
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 5/18/2024 in #djs-voice
joinVoiceChannel is not a function. But its in dependencies
This is there error I get
Its says that
TypeError: joinVoiceChannel is not a function
but its in my require at const { Client, Collection, Events, GatewayIntentBits, createAudioResource, createAudioPlayer, AudioPlayerStatus, joinVoiceChannel, StreamType } = require('discord.js');
[email protected]
bun: 1.1.4 (I cant get node to work)4 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 2/29/2024 in #djs-questions
Send dm from command file
Im trying to send a dm from a command file but when it runs it errors
This is the full file part
6 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 3/13/2023 in #djs-questions
check if channel id is in guild id
Help pls
I want to check if channel id is in guild id without running a command
node = v18.13.0
djs = 14.8.0
My code (Dose not work (its for a command but i want it to run without a command))
11 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 3/6/2023 in #djs-questions
Ping not working
Code:
The error:
node = v18.13.0
djs = 14.7.1
13 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 3/5/2023 in #djs-questions
Api error??
Idk what it meens
The error:
24 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 3/4/2023 in #djs-questions
user ID from command
How should I get the user ID from command runner
18 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 1/22/2023 in #djs-questions
send a screenshot
24 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 1/21/2023 in #djs-questions
bot won't make commands and gives weird errors but still comes online
This is the error i get:
[Error_Handling] :: Unhandled Rejection/Catch
DiscordAPIError: Invalid Form Body
name: Command name is invalid
at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control (0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18)
at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 {
method: 'put',
path: '/applications/1066423230291771494/guilds/1061077499834011658/commands',
code: 50035,
httpStatus: 400,
requestData: {
json: [ [Object], [Object], [Object], [Object], [Object], [Object] ],
files: []
}
} Promise {
<rejected> DiscordAPIError: Invalid Form Body
name: Command name is invalid
at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18)
at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 {
method: 'put',
path: '/applications/1066423230291771494/guilds/1061077499834011658/commands',
code: 50035,
httpStatus: 400,
requestData: { json: [Array], files: [] }
}
}
[Error_Handling] :: Unhandled Rejection/Catch
DiscordAPIError: Invalid Form Body
name: Command name is invalid
at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18)
at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 {
method: 'put',
path: '/applications/1066423230291771494/guilds/1061077499834011658/commands',
code: 50035,
httpStatus: 400,
requestData: {
json: [ [Object], [Object], [Object], [Object], [Object], [Object] ],
files: []
}
} Promise {
<rejected> DiscordAPIError: Invalid Form Body
name: Command name is invalid
at RequestHandler.execute (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async GuildApplicationCommandManager.set (C:\Users\awash\Downloads\Natro-control-(0.0.1)\node_modules\discord.js\src\managers\ApplicationCommandManager.js:162:18)
at async C:\Users\awash\Downloads\Natro-control-(0.0.1)\handlers\slash_handler.js:30:21 {
method: 'put',
path: '/applications/1066423230291771494/guilds/1061077499834011658/commands',
code: 50035,
httpStatus: 400,
requestData: { json: [Array], files: [] }
}
}
11 replies
DIAdiscord.js - Imagine an app
•Created by Awashcard0 on 12/22/2022 in #djs-voice
Server mute and unmute
I wanted to know if there was a way to make it server mute and unserver mute itself
5 replies