Skip to content

Commit

Permalink
cache notice
Browse files Browse the repository at this point in the history
  • Loading branch information
NervN committed Nov 22, 2023
1 parent 58037f2 commit 788b00e
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 4 deletions.
4 changes: 4 additions & 0 deletions guide/Bot/botCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ Returns the amount of bots in your server/guild!
</discord-message>
</discord-messages>

::: danger Warning
This search happen on cached bots only, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).
:::

##### Function Difficulty: <Badge type="tip" text="Easy" vertical="middle" />
###### Tags: <Badge type="tip" text="bots" vertical="middle" /> <Badge type="tip" text="count" vertical="middle" /> <Badge type="tip" text="amount of bots" vertical="middle" /> <Badge type="tip" text="return number" vertical="middle" />
5 changes: 5 additions & 0 deletions guide/Member/findMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ If member is not found:
</discord-message>
</discord-messages>


::: danger Warning
This search happen on cached users only, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).
:::

::: tip Related Functions
[$authorID](../Member/authorID.md), to get the ID from the author of the command

Expand Down
4 changes: 2 additions & 2 deletions guide/Member/usersInChannel.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ returns users in a voice channel or normal channel
[$usersWithRole](../Member/usersWithRole.md), to check if the user has sInChannel
:::

::: info Member must be cached!
If you use the main bot the member must be cached to get valid results.You can ignore the message,if you use custom bot!
::: danger Warning
This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).
:::

##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle" />
Expand Down
7 changes: 6 additions & 1 deletion guide/Member/usersWithRole.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ $usersWithRole[roleID;separator (optional, default new line);id/username/tag/men
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
LonelyWolf#1234, Stranger#5678
</discord-message>
</discord-messages>
</discord-messages>


::: danger Warning
This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).
:::
5 changes: 5 additions & 0 deletions guide/Random/randomMention.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ Returns a random Mention id from a Mention in the server
</discord-message>
</discord-messages>


::: danger Warning
This members comes from the cache, so it picks random member from the cached members, unless all the guild members are cached (which only in tier 5).
:::

##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle" />
###### Tags: <Badge type="tip" text="random" vertical="middle" /> <Badge type="tip" text="random Mention" vertical="middle" /> <Badge type="tip" text="choose" vertical="middle" /> <Badge type="tip" text="return random Mention" vertical="middle" />
2 changes: 1 addition & 1 deletion guide/Role/roleMembersCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Returns the amount of users with given role ID.

::: danger Warning
This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached.
This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).
:::

#### Usage: `$roleMembersCount[roleId]`
Expand Down
4 changes: 4 additions & 0 deletions guide/Server/membersCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ Returns the amount of users in your server/ guild!
</discord-message>
</discord-messages>

::: danger Warning
This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).
:::

##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle" />
###### Tags: <Badge type="tip" text="members" vertical="middle" /> <Badge type="tip" text="count" vertical="middle" /> <Badge type="tip" text="amount of users" vertical="middle" /> <Badge type="tip" text="return number" vertical="middle" />

0 comments on commit 788b00e

Please sign in to comment.