Skip to content

Edit client framework on runtime #2362

Answered by arqunis
CaptainKeys21 asked this question in Q&A
Discussion options

You must be logged in to vote

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 use Context::data to store prefixes you'd like your bot to use at a given moment, then retrieve those prefixes inside of dynamic_prefix and return the one you want.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CaptainKeys21
Comment options

Answer selected by CaptainKeys21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants