mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
Grammar fixes (#4500)
* Grammar fixes * More changes * Grammar * Error grammar * Spelling * Grammar * REsolves grammar * grammar * grammar * grammar * grammar * grammar * grammar * grammar * grammar * "commited" > "committed" * apostrophe * more grammar * grammar * `funtion` to `function` * grammar in alias cog * grammar in cleanup cog * grammar in customcom cog * grammar in mod cog * grammar in reports cog * fix grammar in streams cog * missing apostrophe * grammar fix in trivia cog Co-authored-by: Jyu Viole Grace <24418520+thisisjvgrace@users.noreply.github.com> Co-authored-by: Jyu Viole Grace <thisisjvgrace@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@ class LRUDict:
|
||||
def pop(self, key):
|
||||
return self._dict.pop(key)
|
||||
|
||||
# all of the below access all of the items, and therefore shouldnt modify the ordering for eviction
|
||||
# all of the below access all of the items, and therefore shouldn't modify the ordering for eviction
|
||||
def keys(self):
|
||||
return self._dict.keys()
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class ContextManagerMixin(ProvidesCursor):
|
||||
"""
|
||||
Wraps a cursor as a context manager for a transaction
|
||||
which is rolled back on unhandled exception,
|
||||
or commited on non-exception exit
|
||||
or committed on non-exception exit
|
||||
"""
|
||||
c = self.cursor() # pylint: disable=assignment-from-no-return
|
||||
try:
|
||||
|
||||
@@ -240,7 +240,7 @@ async def check_permissions(ctx: "Context", perms: Dict[str, bool]) -> bool:
|
||||
Parameters
|
||||
----------
|
||||
ctx : Context
|
||||
The command invokation context to check.
|
||||
The command invocation context to check.
|
||||
perms : Dict[str, bool]
|
||||
A dictionary mapping permissions to their required states.
|
||||
Valid permission names are those listed as properties of
|
||||
|
||||
@@ -75,7 +75,7 @@ class MessagePredicate(Callable[[discord.Message], bool]):
|
||||
Parameters
|
||||
----------
|
||||
ctx : Optional[Context]
|
||||
The current invokation context.
|
||||
The current invocation context.
|
||||
channel : Optional[discord.TextChannel]
|
||||
The channel we expect a message in. If unspecified,
|
||||
defaults to ``ctx.channel``. If ``ctx`` is unspecified
|
||||
|
||||
@@ -9,7 +9,7 @@ def unsafe(f, message=None):
|
||||
This form may not get used much, but there are a few cases
|
||||
we may want to add something unsafe generally, but safe in specific uses.
|
||||
|
||||
The warning can be supressed in the safe context with warnings.catch_warnings
|
||||
The warning can be suppressed in the safe context with warnings.catch_warnings
|
||||
This should be used sparingly at most.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user