Skip to content

Sending variable into functions without them showing up as an option in slash commands #963

Answered by ooliver1
TheKrafter asked this question in Q&A
Discussion options

You must be logged in to vote

You could hold an attribute in your bot instance, so it can be accessed from self (assuming you set that attribute in your cog like the examples), or Interaction.client. I would recommend storing the connection, and making a new cursor per transaction/operation too.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by TheKrafter
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