Discord.js Bot Tutorial #9 | Custom Prefix

Discord.js Bot Tutorial #9 | Custom Prefix

BackOnTrack

3 года назад

1,242 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@amadeus4678
@amadeus4678 - 29.07.2022 02:00

My code doesn't work. Error code: Cannot find module 'quick.db'

Ответить
@kishore_ff3122
@kishore_ff3122 - 19.07.2022 10:38

i got error db.set is not a function how to solve

Ответить
@lingrabbit680
@lingrabbit680 - 13.03.2021 14:19

(node:5398) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined Help me

Ответить
@TechAllByHarshit
@TechAllByHarshit - 28.11.2020 15:52

Thank! It helped me!

Ответить
@thewhat9722
@thewhat9722 - 27.10.2020 12:14

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).

Ответить
@futureturbo9945
@futureturbo9945 - 27.10.2020 10:44

first

Ответить