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

Discord.js Commando Broadcast All command error

I'm trying to make broadcast command send a message to all text channels in the guild. My current code looks like this: const discord = require('discord.js'); const Commando = require('discord.js-commando'); module.exports = class broadcastCommand…
user14267797
0
votes
2 answers

discord.js number goes up but resets

so, piggybacking off my previous question tick up order number; The number goes up but every so often it resets without me doing it. Is there a way to keep it from doing that? ORDER NUMBER COMMAND: let baseOrderNumber = 0; baseOrderNumber++; …
Hydra2k
  • 61
  • 5
0
votes
1 answer

Discord.js v12 type errors commando

So I've recently gained the courage to update to the latest discord API from v11 to v12 and I'm now getting type errors on my commands. TypeError: fn.bind is not a function I also updated discord commando to the latest build for v12. I'll post the…
ViridianZe
  • 121
  • 12
0
votes
1 answer

discord.js-commando arguments on a command with different responses

I'm trying to get my bot to run different responses after a command like >open well open what? >open door and the bot would respond with opening door or something along those lines I've read the discord command documentation I'm having a bit of…
ViridianZe
  • 121
  • 12
0
votes
1 answer

Kicking member using commando

So I am trying to write code to kick a member of the server. async run (commandoMsg, userId) { let guild = commandoMsg.guild; //console.log(guild.members.fetch(userId)); let member = guild.members.fetch(userId); …
0
votes
1 answer

Discord.js-commando throttling not working

im trying to throttle commands so they have a cooldown and i followed the commando api im not getting any errors but it is not stopping me from going passed 1 usages so i can still spam it like normal any ideas? module.exports = class…
ViridianZe
  • 121
  • 12
0
votes
1 answer

Discord.js command handler with user permission ,client permission and throttling

How can i check user permission ,client permission , add throttling and define args in exports like commando does my message event looks like this client.on('message', async (message) => { if (message.author.bot) return; if…
ETHYT
  • 63
  • 1
  • 10
0
votes
2 answers

how can i find channel by name which includes emoji Discord?

i used const channel = member.guild.channels.find(ch => ch.name === `welcome`); code to get simple channel name which says welcome but when the same channel includes emojis welcome how do i find any channel which is inside emoji welcome this or any…
Root Android
  • 46
  • 1
  • 6
0
votes
1 answer

How do I make a Discord.js-commando command only usable by people with the user IDs I provide?

I want a command to only be used by a few people. I'm currently using Commando's Owner List to give them permission to use the command. I'd rather give them permissions than giving them owner perms. I'm currently using a system where people listed…
Kausar Ahmed
  • 31
  • 1
  • 7
0
votes
1 answer

Can't convert to JST timezone on heroku

I'm trying to convert input date to japan timezone with this code var japanTime = new Date(input).toLocaleString("en-US", { timeZone: "Japan" }); japanTime = new Date(japanTime); message.channel.send('JAP time output: ' +…
Doan Van Thang
  • 989
  • 1
  • 10
  • 21
0
votes
1 answer

How to check for a certain channel /role by a certain user

I want my bot to be able to check... If a channel my bot made matches a certain name... OR If a role my bot made matches a certain name... THEN The bot would return the action with the message Mod mail is already activated here! Here's my code var…
SomePerson
  • 1,171
  • 4
  • 16
  • 45
0
votes
0 answers

Removing user arguments with discord.js commando

I have been been making this Discord bot for Movie watching with our group. I have run into a problem here, you need to enter a password to join, this all works fine however when the bot asks you for the password, i want to remove the chat in which…
0
votes
1 answer

How to map by sorting by a certain property

I want to make a feature where my bot... - Excludes the # from Category and VC Channels - Sort the channel by their numeral position and not by alphabetical order The problem is I don't know how to split a # from a channel based off of their type.…
SomePerson
  • 1,171
  • 4
  • 16
  • 45
0
votes
1 answer

How to make a bot react to messages under a certain channel, with a certain webhook

This is in my index.js file. My bot is having a Typeerror: Cannot read property 'id' of undefined even though the code was working earlier. The flow is basically: A message event happens It get the guild's webhooks where the message occurs then…
SomePerson
  • 1,171
  • 4
  • 16
  • 45
0
votes
2 answers

Make bot create invite for every guild it is in

I want to know how to make it so every guild the bot is in, it will make an invite and put it in console. It keeps giving me all these ANNOYING typerrors. TypeError: Cannot read property 'first' of undefined I tried changing and messing with the…
SomePerson
  • 1,171
  • 4
  • 16
  • 45