mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-12-19 05:33:28 +00:00
스킵 구현
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
\page using-cache Using Cache
|
||||
|
||||
Sometimes you may need information that is not directly available in the event callback object.
|
||||
|
||||
To handle this DPP maintains a cache of commonly used data for you.
|
||||
|
||||
@note As of August 30th, 2022, Discord made Guild Members a privileged intent. You must have GUILD_MEMBERS intent enabled for your app from discord developers portal to be able to look for members in cache.
|
||||
|
||||
Below is an example showing how to get a user from the cache
|
||||
|
||||
\include{cpp} using_cache.cpp
|
||||
|
||||
DPP caches more than just users, which you can get using the below-mentioned functions:
|
||||
- `dpp::find_role()`
|
||||
- `dpp::find_channel()`
|
||||
- `dpp::find_emoji()`
|
||||
- `dpp::find_guild()`
|
||||
- `dpp::find_guild_member()`
|
||||
Reference in New Issue
Block a user