Edit client framework on runtime #2362
Answered
by
arqunis
CaptainKeys21
asked this question in
Q&A
-
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.
Answered by
arqunis
Mar 12, 2023
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.
1 reply
Answer selected by
CaptainKeys21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.