Custom prefix

How can i implement custom prefix per guild i already have my command which is >prefix <new_prefix> and is saved in mongo but i dont know how can i set it for this server and get the prefix and there is no even of prefix commands here.
5 Replies
Krish
Krish2y ago
there is a function called fetchPrefix (idr it maybe different intellisense may help) which you can define for every command
vphilip
vphilip2y ago
ik about the function but like how can i use it
Krish
Krish2y ago
fetch the database (or cache layer) in that function and return it
vphilip
vphilip2y ago
ok but like where do i add the function
Want results from more Discord servers?
Add your server