Комментарии:
Note setAuthor and setFooter method is depricared.
Should now be .setAuthor({name: 'bob'}) .setFooter({text: 'Hello World'})
How do I delete duplicate slash commands?
ОтветитьIf you would like to keep your bot from crashing everytime you put invalid json in the args, you can simple add a try catch function, for example:
try{
const json = JSON.parse(text)
const embed = new MessageEmbed(json)
return embed
} catch (error) {
return 'Invalid JSON!'
}
!embed works but /embed doesnt
ОтветитьTypeError: Cannot read properties of undefined (reading 'reply') help
ОтветитьI have a question, I saw in the video that Typescript isn't required, but can I use this with Node version 14?
ОтветитьHow to do in .JS plss
Ответитьtysm, this helped a lot!
ОтветитьWhen i create an embed from JSON in discord, everything works but the image or footer. have these features not been implemented yet?
Ответитьi dont really understand after "export default {}" part, how do we write that in js?
ОтветитьDiscordAPIError: Invalid Form Body
embeds[0].description: This field is required
This bot sends the embed perfectly for the first time but crashes upon using the command for the second time.
I can edit the same embed from the "id" message?
ОтветитьPls make more vids
Ответитьhope enjoy! new classic export class:
import Discord from "discord.js";
export default class {
public commands: Discord.GuildApplicationCommandManager | Discord.ApplicationCommandManager | undefined;
public options: Options;
constructor(commands: Discord.GuildApplicationCommandManager | Discord.ApplicationCommandManager | undefined, options: Options) {
this.options = options;
this.commands = commands;
this.start();
}
private async start() {
let options = this.options;
for (const key in options.name) {
/**
* new LibCommands(commands, {
* name: ["ping"],
* description: ["return pong"]
* })
*/
this.commands?.create({
name: options.name[key],
description: options.description[key]
})
}
}
}
interface Options {
name: string[];
description: string[];
}
I'd really love to see a tutorial on how to customize your own help embed. I've checked the source for WOKCommands and I still couldn't figure out how to make hidden commands not show up in the help menu.
ОтветитьWhen running this on a VPS do we have to compile it into javascript or can we just run the file with "ts-node index.ts" on the VPS?
ОтветитьI'm waiting for your embed button :D
ОтветитьCan you please make a video on security systems for the bot? with anti-nuking , alt detection and captcha solving?
Ответитьgreat series
ОтветитьHow about making video about editing a message by id also every 5 seconds or any time also in presenceUpdate event or any other event except message or messageCreate
ОтветитьHey man, loving the video series.
Can you make a video about making a '!help' command that uses the category and description of each command?
btw great series!!!
Ответитьwhy cant we just rewrite the strings in the fields of our first embed , instead of editing it ;-;
im a newbie so im just curious
Nice.
ОтветитьNotification brought me here, pog!
ОтветитьFirst 🥇
Ответить