yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
708 stars 93 forks source link

how to get user input? #248

Closed zZDOCZz closed 2 years ago

zZDOCZz commented 2 years ago

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

OfficialDabois commented 2 years ago

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. :)