Edit client framework on runtime #2362
-
Hi! There is a way to get client framework and edit his properties while the bot is online? For example, change the bot prefix. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately, no. This would require revamping the code to allow this, which wouldn't be easy; however, if you specifically want this for changing prefixes, you should take a look at |
Beta Was this translation helpful? Give feedback.
Unfortunately, no. This would require revamping the code to allow this, which wouldn't be easy; however, if you specifically want this for changing prefixes, you should take a look at
dynamic_prefix
. It grants you the ability to assign a prefix at runtime. You can useContext::data
to store prefixes you'd like your bot to use at a given moment, then retrieve those prefixes inside ofdynamic_prefix
and return the one you want.