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

Get user ID #235

Closed rogermiranda1000 closed 3 years ago

rogermiranda1000 commented 3 years ago

According to User.h there's an id param that returns the user Snowflake, but running 'message.author.id.number()' gives an error: "error: ‘struct SleepyDiscord::User’ has no member named ‘id’".

yourWaifu commented 3 years ago

Capital I capital D. ID

rogermiranda1000 commented 3 years ago

Thanks! My bad, I didn't see the inherited argument from the documentation.

yourWaifu commented 3 years ago

It's in the docs, under the inherited members section.