Giter Club home page Giter Club logo

templates's Introduction

Discord server NPM version NPM downloads Build status paypal

Create a discord bot with TypeScript and Decorators!

๐Ÿ“– Introduction

This repository contains all the starter bot templates used by create-discordx, To get started using one of these templates simply run the following command:

npx create-discordx

๐Ÿ—‚ Templates

Template From
1-starter @samarmeena
2-starter-with-api @samarmeena
3-blank @samarmeena
4-music-player-ytdl @samarmeena
5-music-player-lavalink @samarmeena
6-koa-server @samarmeena

๐Ÿ“œ Documentation

โ˜Ž๏ธ Need help?

๐Ÿ’– Thank you

You can support discordx by giving it a GitHub star.

templates's People

Contributors

abaza738 avatar ahmadh26 avatar dependabot[bot] avatar froggypanda avatar guilhermehccruz avatar makeshiftartist avatar nofailer avatar samarmeena avatar teamwolfyta avatar unloopedmido avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

templates's Issues

Error on using blank template

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: [] }
}

Slash command "all-commands" not working

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

4-music-player-ytdl not playing song

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
image

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")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.