Комментарии:
This is very helpful:))
ОтветитьHELP ME PLS WHEN I DO !say THE BOT DOES NOT SAY I DID THE EXACT SAME THING HE DID
ОтветитьTHANKSSS
Ответитьoof
ОтветитьI dont understand lmao
Ответитьcan you make like lets say mee6 delete its own message in DM's
ОтветитьIf that didn't work, you can only paste this:
case "Say":
const Embed = new Discord.MessageEmbed()
.setColor(0xFFC300)
.setTitle("You have to text your message!")
.setDescription("You can make me say everything!");
if(!args[1]){
message.channel.send(Embed);
break;
}
let msgArgs = args.slice(1).join(" ");
message.channel.send(msgArgs).then(messageReaction => {
message.delete(1000).catch(console.error);
})
break;
"You have to text your message!"
"You can make me say everything!"
"0xFFC300"
Theese can be changed, text me if you have a problem: ♥☆𐌀𐌊𐌆𐍂𐌀☆♥#2834
Error: Cannot find module 'C:\Users\tarik'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15)
at Function.Module._load (internal/modules/cjs/loader.js:855:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
message.channel.bulkDelete doesn't work any more any ideas why? it says the message bust be a array, collection or number?
Ответитьit's good but, how can I make it exact like if I type in clear 10 it will only clear 9 messages including mine I just typed
Ответитьwhere to code-
ОтветитьError: Cannot find module 'C:\Users\tarik'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15)
at Function.Module._load (internal/modules/cjs/loader.js:855:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
i need do it on certain channel how to do it?
Ответитьif(!message.member.roles.find(r => r.name === "Admin")) return message.reply("Sorry, you dont have permission to clear the chat");
if(args[0]) return message.channel.send("you need to specify a number");
message.channel.bulkDelete(ars[0]),then(() => {
message.channel.send(`Cleared ${args[0]} messages`).then(msg => msg.delete(2000));
"you need to specify a number" what a shit
So here's my problem.. When I say "?say test" my bot literally says "says test". Someone help..?
Ответить"The messages must be an Array, Collection, or number."
ОтветитьHmmm.... How can I set a timer! Like... Letting it saying something by itself every few minutes.. without commands!?
ОтветитьThanks so much! I'm terrible at coding and I have attempted to learn it, but I kind of have a problem with remembering things, so programming never got a reality. I followed the Discord.js guide and managed to create a working command, but I was on my own from there and wanted a Say command, so thanks.
Ответитьmy bot won't start op and says message not defined. can someone help?
ОтветитьNot work :
C:\Users\AIHAN.1\Desktop\Discordjs2\tutorial>node index.js
{ [Error: ENOENT: no such file or directory, scandir 'C:\Users\AIHAN.1\Desktop\Discordjs2\tutorial\cmds']
errno: -4058,
code: 'ENOENT',
syscall: 'scandir',
path: 'C:\\Users\\AIHAN.1\\Desktop\\Discordjs2\\tutorial\\cmds' }
C:\Users\AIHAN.1\Desktop\Discordjs2\tutorial\index.js:8
let jsfiles = files.filter(f => f.split(".").pop() === "js");
^
TypeError: Cannot read property 'filter' of undefined
at fs.readdir (C:\Users\AIHAN.1\Desktop\Discordjs2\tutorial\index.js:8:25)
at FSReqWrap.args [as oncomplete] (fs.js:140:20)
C:\Users\AIHAN.1\Desktop\Discordjs2\tutorial>
anyway to make it clear msgs from only 1 user? like filter whos msgs it deletes
ОтветитьHow can i filter out pinned messages?
ОтветитьAmazing, I did it succesful !!!, THANKS
ОтветитьWhere do I put the code? How do I apply it to discord?
ОтветитьReferenceError: args is not defined
Ответитьhow do i join your discord server
Ответитьwhat is the token.json
Ответитьyou change your desktop background
last time it was.... :>
About the Clear Command: you have to check if the messages above are older than 2 weeks, or if the number is over 100
ОтветитьAll the commands stops working after a while. Wtf i dont get it.
I had to do redo the bot from scratch 2 times already
(node:5792) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'member' of undefined
ОтветитьOkay so, were is your prefix?!
ОтветитьAdd ANIME commands
Ответитьclear command not working
ОтветитьWhen i run the command, nothing happens, even though it says no problems, can i get some help please (im using VSC)
ОтветитьIt doesnt seems to work when i do. !say !warn @user reason
Can my bot not use that command ?
Because the warning works great.
I have a wordfilter build in and some other things, i like to warn people after the failt on them.
I just want my bot to do that.
your bot cleared only 3 messages, yet you had the command to clear 4.. how do you fix this?
ОтветитьIve a problem:
let botmessage = args.join(" ")
^
args is not defined
uh. where do i code this???? im so confused
Ответитьand for people who put everything in the index.js using the code:
if (message.content === prefix + "command") {
I tried but do not want it ..
how's that?
Wait: How do you make it say No. on the say command if the user does NOT have MANAGE_MESSAGES?
ОтветитьI want to add code mention , ex : !credit @user
Ответить.
Ответитьif(!message.member.hasPermission("MANAGE_MESSAGES")) return message.reply("off.");
if(!args[0]) return message.channel.send("off");
message.channel.bulkDelete(args[0]).then(() => {
message.channel.send(`Cleared ${args[0]} messages. `).then(msg => msg.delete(5000));
})
}
Thanks it helped me so much
ОтветитьInstead of it being like,
Me: !say Hello
Bot: Hello
It keeps on doing this
Me: !say Hello
Bot: !say Hello
And the bot keeps on deleting and repeating !say Hello
Hey nice vid man! Could you make a video about how to set the bots status like dnd, idle or invisible 😀 that would be cool
Ответить