discordx-ts / templates Goto Github PK
View Code? Open in Web Editor NEWtemplates of create-discordx
Home Page: https://discordx.js.org
License: Apache License 2.0
templates of create-discordx
Home Page: https://discordx.js.org
License: Apache License 2.0
I got following error on after startup from a new installation of the blank template. On O2FA i set the bot permission to applications.commands
, bot
and set the bot permissions for administrator. can anyone help?
/home/f0xcb/codebase/badend-helper/node_modules/discord.js/src/rest/RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Missing Access
at RequestHandler.execute (/home/f0xcb/codebase/badend-helper/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/f0xcb/codebase/badend-helper/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async GuildApplicationCommandManager.fetch (/home/f0xcb/codebase/badend-helper/node_modules/discord.js/src/managers/ApplicationCommandManager.js:99:18)
at async Client.initGuildApplicationCommands (file:///home/f0xcb/codebase/badend-helper/node_modules/discordx/src/Client.ts:556:33)
at async Promise.all (index 1)
at async Promise.all (index 0)
at async Client.initApplicationCommands (file:///home/f0xcb/codebase/badend-helper/node_modules/discordx/src/Client.ts:526:5)
at async Client.<anonymous> (file:///home/f0xcb/codebase/badend-helper/src/main.ts:35:3) {
method: 'get',
path: '/applications/986896411486453820/guilds/928358890398179431/commands',
code: 50001,
httpStatus: 403,
requestData: { json: undefined, files: [] }
}
I was exploring this template for my discord bot project. when I use \all-commands it seems break the bot and giving this error. I'm new to discordx and discordjs modules. Could you fix this issue? thank you
C:\Projects\mainyuk\node_modules\@sapphire\shapeshift\src\validators\ArrayValidator.ts:21
export class ArrayValidator<T extends unknown[], I = T[number]> extends BaseValidator<T> {
^
CombinedPropertyError: Received one or more errors
at ArrayValidator.handle (C:\Projects\mainyuk\node_modules\@sapphire\shapeshift\src\validators\ArrayValidator.ts:21:14)
at ArrayValidator.parse (C:\Projects\mainyuk\node_modules\@sapphire\shapeshift\src\validators\BaseValidator.ts:102:48)
at EmbedBuilder.addFields (C:\Projects\mainyuk\node_modules\@discordjs\builders\src\messages\embed\Embed.ts:23:31)
at file:///C:/Projects/mainyuk/src/commands/slashes.ts:23:10
at Array.map (<anonymous>)
at SlashExample.pages (file:///C:/Projects/mainyuk/src/commands/slashes.ts:18:28)
at next (file:///C:/Projects/mainyuk/node_modules/discordx/src/decorators/classes/Method.ts:85:63)
at file:///C:/Projects/mainyuk/node_modules/discordx/src/decorators/classes/Method.ts:108:31
at DApplicationCommand.<anonymous> (file:///C:/Projects/mainyuk/node_modules/discordx/src/decorators/classes/Method.ts:40:49)
at Client.executeCommandInteraction (file:///C:/Projects/mainyuk/node_modules/discordx/src/Client.ts:1064:31) {
errors: [ [ 0, [CombinedPropertyError] ] ]
}
edit: The issue appears in the 1-starter template
Hello,
I've used npx create-discordx to init a project with 4-music-player-ytdl
I did not modify any of the files
When I run the command /music play
The bot join my channel, send the control embed, start playing the song with the time on the embed
But no song is playing on the voice channel, no green circle or anything.
I've tried to setVolume(100) but it's the same result.
Hope someone can help
(I don't attach code since it's the same as "4-music-player-ytdl")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.