Questions tagged [commando]

A command framework for discord.js

Commando is the official command framework for discord.js. It is flexible, fully object-oriented, easy to use, and makes it trivial to create your own powerful commands.

NPM

79 questions
0
votes
1 answer

ReferenceError: Invalid left-hand side in assignment in discord.js commando

Using the WOK Thanks Command code that I cloned from the repo, and edited a bit, but I get the ReferenceError: Invalid left-hand side in assignment from commando in discord itself when I type out the command. Code: const Commando =…
0
votes
1 answer

How to edit/replace embeds in discordjs-commando

I am making a Type racing minigame with my discord bot, the code works... but I want to change the messages it sends to embeds, im new to Commando and it wont let me use the discord.js functions im used to using I need to change all the bots…
Akzus
  • 29
  • 4
0
votes
1 answer

Discord.js delete all bot and user message when trigger

as I said in the title, I would like the bot to delete all the messages used after activating the command, leaving only the embed as a result, but I can't do it. Any clue to do so? const { Command } = require("discord.js-commando"); const Discord =…
0
votes
1 answer

Discord.js-commando missing argument reply

I'm porting my commands from vanilla discord.js to commando framework. I had a command that, when the argument was missing, it warned the user. const { Command } = require('discord.js-commando'); module.exports = class ServerCommand extends Command…
0
votes
1 answer

Error on discord commando A command with the name/alias "${command.name}" is already registered

I am using Node.js Discord.js-commando, I try to run my code but this comes up please tell me if you are having the same error or have a fix. The code under is from the index.js for your help. Please reply to this message and tell me if you know…
0
votes
0 answers

A command with the name/alias "${command.name}" is already registered

I am using Node.js Discord.js-commando, I try to run my code but this comes up please tell me if you are having the same error or have a fix. The code under is from the index.js for your help. Please reply to this message and tell me if you know…
0
votes
1 answer

How to use the client.on('quildMemberAdd') event in a command?

So I'm making a command that sends a message to a channel when a user joins, but due to the way that I am caching the data, I can't access it from the main file. So is there any way to use client events within a command using Commando or do I need…
GateLogic
  • 3
  • 2
0
votes
1 answer

Discordjs and commando

I'm using the commando library for discord js. I need my bot to perform certain checks if the message is not a command. How can I go about achieving this with Commando? Can I add an on Message listener?
gishman
  • 17
  • 6
0
votes
1 answer

Discord.JS ReferenceError: stopTyping is not Defined

I'm trying to get our announce command to work but it keeps throwing the following error: @Nimbi, An error occurred while running the command: ReferenceError: stopTyping is not defined You shouldn't ever receive an error like this. Please contact…
user14267797
0
votes
2 answers

Don't know how to change to lowercase in this scenario

I am trying to use the discord.js awaitMessages method but it doesn't seem to work with uppercase letters because my possible answers (triviacharacterslist.js) are all lowercase. I tried to convert this (in the code) but it doesn't seem to…
0
votes
1 answer

Sme answer variants not working discord.js

I tried to make a character trivia bot where when I write .tc it shows a random character and you have to answer what is the name of the character in 15 seconds, the code for it is in a file called triviachar.js and all the answer variants are put…
0
votes
0 answers

Twitch-Commando Error: Cannot Read Property 'Get' of Undefined

Yo I'm trying to get TwitchBot's Twitch integration working via twitch-commando but keep getting this error: info: Register command system:eval info: Register command system:help info: Register command system:join info: Register command…
user14267797
0
votes
1 answer

discord.js-commando RangeError: Argument type "string" isn't registered

I'm trying to disable default help and eval command in commando however, I get the following error: RangeError: Argument type "string" isn't registered. I registered discord.js-commando as client That's the code that the error is…
Svensk2137
  • 11
  • 2
0
votes
1 answer

FS Events Message.js not working in Discord.js v12

I'm trying to redo my events into an fs event system to have separate files for each event, and I'm having some issues with converting the code to Discord.JS v12. Can someone please help me figure out what's going wrong with my message.js file? Here…
user14267797
0
votes
1 answer

TypeError in Discord.JS-Commando Discord Bot

Ok, so I have a bot built in discord.js-commando. I';ve been doing some tweaking to it, mainly trying to add some more functionality, such as logging commands and such to a channel by name as well as adding console.error logging. Now my attempts to…
user14267797