aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorVexs <[email protected]>2019-04-09 10:00:16 -0500
committerRapptz <[email protected]>2019-04-10 00:55:45 -0400
commit4df0f79a6b60b89e5e0aeccaa3b7b642f456c9f2 (patch)
treefd9eeb18c95bfd28db19831f938012938bb38096 /discord/client.py
parentFix various bugs with Asset._url None handling. (diff)
downloaddiscord.py-4df0f79a6b60b89e5e0aeccaa3b7b642f456c9f2.tar.xz
discord.py-4df0f79a6b60b89e5e0aeccaa3b7b642f456c9f2.zip
Add notes warning that fetch_ methods are api calls
Also recommends using cache attributes/methods instead
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index 008d44fe..a3ebdf08 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -861,6 +861,10 @@ class Client:
Using this, you will only receive :attr:`Guild.owner`, :attr:`Guild.icon`,
:attr:`Guild.id`, and :attr:`Guild.name` per :class:`Guild`.
+ .. note::
+
+ This method is an API call. For general usage, consider :attr:`guilds` instead.
+
All parameters are optional.
Parameters
@@ -912,6 +916,10 @@ class Client:
Using this, you will not receive :attr:`Guild.channels`, :class:`Guild.members`,
:attr:`Member.activity` and :attr:`Member.voice` per :class:`Member`.
+ .. note::
+
+ This method is an API call. For general usage, consider :meth:`get_guild` instead.
+
Parameters
-----------
guild_id: :class:`int`
@@ -1099,6 +1107,10 @@ class Client:
with the user to get this information, however many operations
do require that you do.
+ .. note::
+
+ This method is an API call. For general usage, consider :meth:`get_user` instead.
+
Parameters
-----------
user_id: :class:`int`