Commando
Commando copied to clipboard
Official command framework for discord.js
Something that I have seen the need of in some of my bots is deleting the messages that initiated a command. An option that allows for the message the initiated...
It would be cool to integrate Slash commands support in Commando: https://discord.com/developers/docs/interactions/slash-commands. It can be done with something like this: ```js client.registry.commands.forEach(command => { client.api.applications(client.user.id).guilds('GUILD ID').commands.post({ data: { name: command.name.replace(/-/g,...
Before you could eval 'this.sensitivePattern' or 'this._sensitivePattern' to gain the token and now you can't since the escaped preifx will also get replaced in the result message.
The most of Discord bots are expected to provide "mute" and "ban" commands. Their implementation involves juggling with parsing strings just to get so-much-desired duration. Formats: > "3w 1d 11...
Sapphire
Just to set the record straight. Discordjs people have said that Commando is canceling and will not support djs v13. Commando will be replaced by sapphire. Make up your own...
/Users/mihail/Downloads/assasans-bot/node_modules/discord.js-commando/src/extensions/message.js:7 module.exports = Structures.extend('Message', Message => { ^ TypeError: Cannot read property 'extend' of undefined at Object. (/Users/mihail/Downloads/assasans-bot/node_modules/discord.js-commando/src/extensions/message.js:7:29) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14)...
So, the client saves the channel id to provide it args, but, when you use the bot in a channel where it cannot type, it sends a message to the...
It says the error is coming from the line: const existing = this.groups.get(group.id);
Whenever someone uses the preset help command, it will send a message within DM's and not saying `Unable to send you the help DM. You probably have DMs disabled.` when...
Replaces a reference to the now removed `Util.resolveString` with `Util.verifyString` Introduced by https://github.com/discordjs/discord.js/pull/4880