Skip to content

Commit

Permalink
Update docs/faq.rst
Browse files Browse the repository at this point in the history
Co-authored-by: JustaSqu1d <[email protected]>
Signed-off-by: Blue-Robin-Taken <[email protected]>
  • Loading branch information
Blue-Robin-Taken and JustaSqu1d authored Jul 9, 2023
1 parent e245a89 commit d4ba003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Putting both of these pieces of info together, you get the following: ::

What is the difference between get_ methods and fetch_ methods?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Get" methods retrieve objects or data from the cache (general store of data) and can return ``None`` if not found (this doesn't raise an error). "Fetch" methods force an API request and will raise an error if not found. Example: ::
"Get" methods retrieve objects or data from the cache (general store of data) and can return ``None`` if not found. "Fetch" methods force an API request and will raise an error if not found. Example: ::

role = member.guild.get_role(id) # try to get role without an API request through the cache
if role is not None:
Expand Down

0 comments on commit d4ba003

Please sign in to comment.