diff options
| author | Ehren Julien-Neitzert <[email protected]> | 2019-05-23 23:31:17 -0400 |
|---|---|---|
| committer | Danny <[email protected]> | 2019-05-23 23:31:17 -0400 |
| commit | fc5a2936dd9456f1489dc1125c12448a2af23e15 (patch) | |
| tree | 7c53fbf6c6a8779967c54d73b44269105c36bc79 | |
| parent | Grammar fixes for notes on EmbedProxy (diff) | |
| download | discord.py-fc5a2936dd9456f1489dc1125c12448a2af23e15.tar.xz discord.py-fc5a2936dd9456f1489dc1125c12448a2af23e15.zip | |
Fix pluralization errors in various files
* Replaced instances of 'return an' with 'returns an'
* fixed pluralization errors
| -rw-r--r-- | .github/CONTRIBUTING.md | 2 | ||||
| -rw-r--r-- | discord/abc.py | 2 | ||||
| -rw-r--r-- | discord/guild.py | 2 | ||||
| -rw-r--r-- | discord/message.py | 4 | ||||
| -rw-r--r-- | docs/api.rst | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1247263f..68f037c3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -32,7 +32,7 @@ If the bug report is missing this information then it'll take us longer to fix t ## Submitting a Pull Request -Submitting a pull request is fairly simple, just make sure it focuses on a single aspect and doesn't manage to have scope creep and it's probably good to go. It would be incredibly lovely if the style is consistent to those found in the project. This project follows PEP-8 guidelines (mostly) with a column limit of 125. +Submitting a pull request is fairly simple, just make sure it focuses on a single aspect and doesn't manage to have scope creep and it's probably good to go. It would be incredibly lovely if the style is consistent to that found in the project. This project follows PEP-8 guidelines (mostly) with a column limit of 125. ### Git Commit Guidelines diff --git a/discord/abc.py b/discord/abc.py index a0f424d6..6c0350db 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -905,7 +905,7 @@ class Messageable(metaclass=abc.ABCMeta): return [state.create_message(channel=channel, data=m) for m in data] def history(self, *, limit=100, before=None, after=None, around=None, oldest_first=None): - """Return an :class:`.AsyncIterator` that enables receiving the destination's message history. + """Returns an :class:`.AsyncIterator` that enables receiving the destination's message history. You must have :attr:`~.Permissions.read_message_history` permissions to use this. diff --git a/discord/guild.py b/discord/guild.py index fc59ce70..2a6226aa 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -1458,7 +1458,7 @@ class Guild(Hashable): return state.http.ack_guild(self.id) def audit_logs(self, *, limit=100, before=None, after=None, oldest_first=None, user=None, action=None): - """Return an :class:`AsyncIterator` that enables receiving the guild's audit logs. + """Returns an :class:`AsyncIterator` that enables receiving the guild's audit logs. You must have the :attr:`~Permissions.view_audit_log` permission to use this. diff --git a/discord/message.py b/discord/message.py index 701dce8f..ddc8e612 100644 --- a/discord/message.py +++ b/discord/message.py @@ -98,7 +98,7 @@ class Attachment: more often, compared to the regular URL which is generally deleted right after the message is deleted. Note that this can still fail to download deleted attachments if too much time has passed and it does not work - on some type of attachments. + on some types of attachments. Raises -------- @@ -137,7 +137,7 @@ class Attachment: more often, compared to the regular URL which is generally deleted right after the message is deleted. Note that this can still fail to download deleted attachments if too much time has passed and it does not work - on some type of attachments. + on some types of attachments. Raises ------ diff --git a/docs/api.rst b/docs/api.rst index 8bd2b2cf..f8d2af31 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1642,7 +1642,7 @@ this goal, it must make use of a couple of data classes that aid in this goal. .. describe:: iter(diff) - Return an iterator over (attribute, value) tuple of this diff. + Returns an iterator over (attribute, value) tuple of this diff. .. attribute:: name |