yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots

Home Page:https://yourWaifu.github.io/sleepy-discord/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get user input?

zZDOCZz opened this issue · comments

like "!ban @user" how can i get the "@user" as a user input.
i did go through the documentation and i found nothing or maybe i am just blind

Do you mean getting the mention if so its message.mentions[0] (using the zero as it puts all the mentioned in the message into a vector).
If you mean you want to get it as a string then the syntax is <@![The users id you are referencing here]>. E.G. <@!49285037473937>.
If this doesnt help please reply and I will try and help you. :)