From 4df0f79a6b60b89e5e0aeccaa3b7b642f456c9f2 Mon Sep 17 00:00:00 2001 From: Vexs Date: Tue, 9 Apr 2019 10:00:16 -0500 Subject: Add notes warning that fetch_ methods are api calls Also recommends using cache attributes/methods instead --- discord/guild.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'discord/guild.py') diff --git a/discord/guild.py b/discord/guild.py index 260d296b..52982856 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -931,6 +931,10 @@ class Guild(Hashable): Retreives a :class:`Member` from a guild ID, and a member ID. + .. note:: + + This method is an API call. For general usage, consider :meth:`get_member` instead. + Parameters ----------- member_id: :class:`int` @@ -1149,6 +1153,10 @@ class Guild(Hashable): Retrieves all custom :class:`Emoji`\s from the guild. + .. note:: + + This method is an API call. For general usage, consider :attr:`emojis` instead. + Raises --------- HTTPException @@ -1167,6 +1175,11 @@ class Guild(Hashable): Retrieves a custom :class:`Emoji` from the guild. + .. note:: + + This method is an API call. + For general usage, consider iterating over :attr:`emojis` instead. + Parameters ------------- emoji_id: :class:`int` -- cgit v1.2.3