mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 17:32:31 -05:00
docs: fix typos (#5989)
Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
@@ -143,7 +143,7 @@ class DetailedGlobalCallOnceChecksMixin(IssueDiagnoserBase):
|
||||
|
||||
# While the following 2 checks could show even more precise error message,
|
||||
# it would require a usage of private attribute rather than the public API
|
||||
# which increases maintanance burden for not that big of benefit.
|
||||
# which increases maintenance burden for not that big of benefit.
|
||||
async def _check_ignored_issues(self) -> CheckResult:
|
||||
label = _("Check if the channel and the server aren't set to be ignored")
|
||||
if await self.bot.ignored_channel_or_guild(self.message):
|
||||
@@ -816,7 +816,7 @@ class RootDiagnosersMixin(
|
||||
async def _check_global_call_once_checks_issues(self) -> CheckResult:
|
||||
label = _("Global 'call once' checks")
|
||||
# To avoid running core's global checks twice, we just run them all regularly
|
||||
# and if it turns out that invokation would end here, we go back and check each of
|
||||
# and if it turns out that invocation would end here, we go back and check each of
|
||||
# core's global check individually to give more precise error message.
|
||||
try:
|
||||
can_run = await self.bot.can_run(self.ctx, call_once=True)
|
||||
|
||||
@@ -700,7 +700,7 @@ class Red(
|
||||
|
||||
If given a member, this will additionally check guild lists
|
||||
|
||||
If omiting a user or member, you must provide a value for ``who_id``
|
||||
If omitting a user or member, you must provide a value for ``who_id``
|
||||
|
||||
You may also provide a value for ``guild`` in this case
|
||||
|
||||
|
||||
@@ -510,7 +510,7 @@ class RedHelpFormatter(HelpFormatterABC):
|
||||
offset += len(embed_dict["embed"]["title"])
|
||||
|
||||
# In order to only change the size of embeds when necessary for this rather
|
||||
# than change the existing behavior for people uneffected by this
|
||||
# than change the existing behavior for people unaffected by this
|
||||
# we're only modifying the page char limit should they be impacted.
|
||||
# We could consider changing this to always just subtract the offset,
|
||||
# But based on when this is being handled (very end of 3.2 release)
|
||||
@@ -519,7 +519,7 @@ class RedHelpFormatter(HelpFormatterABC):
|
||||
# This is still necessary with the max interaction above
|
||||
# While we could subtract 100% of the time the offset from page_char_limit
|
||||
# the intent here is to shorten again
|
||||
# *only* when necessary, by the exact neccessary amount
|
||||
# *only* when necessary, by the exact necessary amount
|
||||
# To retain a visual match with prior behavior.
|
||||
page_char_limit = 5500 - offset
|
||||
elif page_char_limit < 250:
|
||||
|
||||
@@ -1320,7 +1320,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
self, ctx: commands.GuildContext, command: CommandConverter, enabled: bool = None
|
||||
):
|
||||
"""
|
||||
Sets a commmand's embed setting for the current server.
|
||||
Sets a command's embed setting for the current server.
|
||||
|
||||
If set, this is used instead of the server default to determine whether or not to use embeds.
|
||||
|
||||
@@ -3692,7 +3692,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
|
||||
if msg is not None:
|
||||
await self.bot._config.invoke_error_msg.set(msg)
|
||||
content = _("Succesfully updated the error message.")
|
||||
content = _("Successfully updated the error message.")
|
||||
else:
|
||||
await self.bot._config.invoke_error_msg.clear()
|
||||
content = _("Successfully reset the error message back to the default one.")
|
||||
|
||||
@@ -174,7 +174,7 @@ class RPCMixin:
|
||||
|
||||
def unregister_rpc_handler(self, method):
|
||||
"""
|
||||
Unregisters an RPC method handler.
|
||||
Deregisters an RPC method handler.
|
||||
|
||||
This will be called automatically for you on cog unload and will pass silently if the
|
||||
method is not previously registered.
|
||||
|
||||
@@ -14,7 +14,7 @@ from .utils import AsyncIter
|
||||
class PrefixManager:
|
||||
def __init__(self, config: Config, cli_flags: Namespace):
|
||||
self._config: Config = config
|
||||
self._global_prefix_overide: Optional[List[str]] = (
|
||||
self._global_prefix_override: Optional[List[str]] = (
|
||||
sorted(cli_flags.prefix, reverse=True) or None
|
||||
)
|
||||
self._cached: Dict[Optional[int], List[str]] = {}
|
||||
@@ -32,7 +32,7 @@ class PrefixManager:
|
||||
if not ret:
|
||||
ret = await self.get_prefixes(None)
|
||||
else:
|
||||
ret = self._global_prefix_overide or (await self._config.prefix())
|
||||
ret = self._global_prefix_override or (await self._config.prefix())
|
||||
|
||||
self._cached[gid] = ret.copy()
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ class Tunnel(metaclass=TunnelMeta):
|
||||
|
||||
async def close_because_disabled(self, close_message: str):
|
||||
"""
|
||||
Sends a mesage to both ends of the tunnel that the tunnel is now closed.
|
||||
Sends a message to both ends of the tunnel that the tunnel is now closed.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
@@ -352,7 +352,7 @@ class SetApiModal(discord.ui.Modal):
|
||||
async def on_submit(self, interaction: discord.Interaction):
|
||||
if not await interaction.client.is_owner(
|
||||
interaction.user
|
||||
): # Prevent non-bot owners from somehow aquiring and saving the modal.
|
||||
): # Prevent non-bot owners from somehow acquiring and saving the modal.
|
||||
return await interaction.response.send_message(
|
||||
_("This modal is for bot owners only. Whoops!"), ephemeral=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user