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
there is a function called
fetchPrefix
(idr it maybe different intellisense may help) which you can define for every commandik about the function but like how can i use it
fetch the database (or cache layer) in that function and return it
ok but like where do i add the function
https://github.com/skyra-project/skyra/blob/8a4701294215f731da1e87af3af9a239b696c1f5/src/lib/SkyraClient.ts#L84
In your extended class
idk if more ways exist