Skip to content

How do I let a bot recognize users? #1365

Answered by davfsa
MechanicalDeus asked this question in Q&A
Discussion options

You must be logged in to vote

Something you can do is link a user ID to its "character" and store that information in a database. You can get the user that executed the interaction from the event that is received, and I'm sure lightbulb exports that in their context variable (iirc, its ctx.author.id).

Hope that answers your question. If you have any follow-up ones, you can ask them here and I will try my best to answer or you can join our Discord server and ask there (https://discord.gg/hikari) :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davfsa
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