mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
Message and error logging, various bugfixes
This commit is contained in:
parent
ea62ede21b
commit
58d8927380
7 changed files with 161 additions and 37 deletions
|
|
@ -39,7 +39,7 @@ async def parse_mention(client: discord.Client, mention: str) -> Optional[discor
|
|||
def parse_channel_mention(mention: str, server: discord.Guild) -> Optional[discord.TextChannel]:
|
||||
match = re.fullmatch("<#(\\d+)>", mention)
|
||||
if match:
|
||||
return server.get_channel(match.group(1))
|
||||
return server.get_channel(int(match.group(1)))
|
||||
|
||||
try:
|
||||
return server.get_channel(int(mention))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue