mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
Bump discord.py to 1.7.0 (#4928)
* Bump discord.py, but to the git version for now * Import GuildConverter from d.py and deprecate our implementation * Import PartialMessageConverter in our commands extension * Use newly added `Cog.has_error_handler()` rather than private method * Update snowflake regex to use 20 as max length See Rapptz/discord.py#6501 * Use new supported way for custom cooldown buckets * Include group args in command signature * Update code to use `Client.close()` over `Client.logout()` * Add StageChannelConverter and StoreChannelConverter * Fix AttributeError in licenseinfo
This commit is contained in:
@@ -58,7 +58,7 @@ Guild must be a valid version of one of the following:
|
||||
|
||||
_ = T_
|
||||
|
||||
MENTION_RE: Final[Pattern] = re.compile(r"^<?(?:(?:@[!&]?)?|#)(\d{15,21})>?$")
|
||||
MENTION_RE: Final[Pattern] = re.compile(r"^<?(?:(?:@[!&]?)?|#)(\d{15,20})>?$")
|
||||
|
||||
|
||||
def _match_id(arg: str) -> Optional[int]:
|
||||
|
||||
@@ -4,8 +4,8 @@ from redbot.core.i18n import Translator
|
||||
|
||||
_ = Translator("Mod", __file__)
|
||||
|
||||
_id_regex = re.compile(r"([0-9]{15,21})$")
|
||||
_mention_regex = re.compile(r"<@!?([0-9]{15,21})>$")
|
||||
_id_regex = re.compile(r"([0-9]{15,20})$")
|
||||
_mention_regex = re.compile(r"<@!?([0-9]{15,20})>$")
|
||||
|
||||
|
||||
class RawUserIds(Converter):
|
||||
|
||||
@@ -10,7 +10,7 @@ from redbot.core.utils import AsyncIter
|
||||
|
||||
_ = Translator("PermissionsConverters", __file__)
|
||||
|
||||
MENTION_RE = re.compile(r"^<?(?:(?:@[!&]?)?|#)(\d{15,21})>?$")
|
||||
MENTION_RE = re.compile(r"^<?(?:(?:@[!&]?)?|#)(\d{15,20})>?$")
|
||||
|
||||
|
||||
def _match_id(arg: str) -> Optional[int]:
|
||||
|
||||
Reference in New Issue
Block a user