mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
Co-authored-by: Lioness100 <jchickmm2@gmail.com> Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
@@ -132,7 +132,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):
|
||||
@@ -782,7 +782,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)
|
||||
|
||||
@@ -693,7 +693,7 @@ class RedBase(
|
||||
|
||||
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_id`` in this case
|
||||
|
||||
|
||||
@@ -481,7 +481,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)
|
||||
@@ -490,7 +490,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:
|
||||
|
||||
@@ -1309,7 +1309,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.
|
||||
|
||||
|
||||
@@ -163,7 +163,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()
|
||||
|
||||
|
||||
@@ -175,7 +175,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
|
||||
----------
|
||||
|
||||
Reference in New Issue
Block a user