Комментарии:
My code doesn't work. Error code: Cannot find module 'quick.db'
Ответитьi got error db.set is not a function how to solve
Ответить(node:5398) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined Help me
ОтветитьThank! It helped me!
Ответитьif you are wondering how to get the admin only to change the prefix, do this :
if(!message.author.hasPermission("ADMINISTRATOR")){
message.channel.send(" only admins can change my prefix);
}else{
(change prefix here)
}
edit: use !message.member.hasPermission ... not author (check the replies).
first
Ответить