Browse Source

Fix various a -> an typos across the library

Closes #8301, #8287
pull/10109/head
Rapptz 3 years ago
committed by dolfies
parent
commit
2e9dfb3e12
  1. 2
      discord/ext/commands/core.py
  2. 16
      discord/flags.py

2
discord/ext/commands/core.py

@ -406,7 +406,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
elif isinstance(cooldown, CooldownMapping):
buckets: CooldownMapping[Context[Any]] = cooldown
else:
raise TypeError("Cooldown must be a an instance of CooldownMapping or None.")
raise TypeError("Cooldown must be an instance of CooldownMapping or None.")
self._buckets: CooldownMapping[Context[Any]] = buckets
try:

16
discord/flags.py

@ -1082,19 +1082,19 @@ class ApplicationFlags(BaseFlags):
Checks if two ApplicationFlags are not equal.
.. describe:: x | y, x |= y
Returns a ApplicationFlags instance with all enabled flags from
Returns an ApplicationFlags instance with all enabled flags from
both x and y.
.. describe:: x & y, x &= y
Returns a ApplicationFlags instance with only flags enabled on
Returns an ApplicationFlags instance with only flags enabled on
both x and y.
.. describe:: x ^ y, x ^= y
Returns a ApplicationFlags instance with only flags enabled on
Returns an ApplicationFlags instance with only flags enabled on
only one of x or y, not on both.
.. describe:: ~x
Returns a ApplicationFlags instance with all flags inverted from x.
Returns an ApplicationFlags instance with all flags inverted from x.
.. describe:: hash(x)
Return the flag's hash.
@ -2176,19 +2176,19 @@ class AutoModPresets(ArrayFlags):
Checks if two AutoModPresets flags are not equal.
.. describe:: x | y, x |= y
Returns a AutoModPresets instance with all enabled flags from
Returns an AutoModPresets instance with all enabled flags from
both x and y.
.. describe:: x & y, x &= y
Returns a AutoModPresets instance with only flags enabled on
Returns an AutoModPresets instance with only flags enabled on
both x and y.
.. describe:: x ^ y, x ^= y
Returns a AutoModPresets instance with only flags enabled on
Returns an AutoModPresets instance with only flags enabled on
only one of x or y, not on both.
.. describe:: ~x
Returns a AutoModPresets instance with all flags inverted from x.
Returns an AutoModPresets instance with all flags inverted from x.
.. describe:: hash(x)
Return the flag's hash.

Loading…
Cancel
Save