Skip to content

Commit c6a9415

Browse files
committed
Fix small issue in thread finding from channel
1 parent c8ed57d commit c6a9415

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# v2.6.3
8+
9+
Fixed small issue in thread finding.
10+
711
# v2.6.2
812

913
Fixed log urls for selfhosting users. (This shouldn't affect anyone)

bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = '2.6.2'
25+
__version__ = '2.6.3'
2626

2727
import asyncio
2828
import textwrap

core/thread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ async def _find_from_channel(self, channel):
377377
if message.embeds:
378378
em = message.embeds[0]
379379
# TODO: use re.search instead
380-
matches = re.findall(r'User ID: (\d+)', em.footer.text)
380+
matches = re.findall(r'User ID: (\d+)', str(em.footer.text))
381381
if matches:
382382
user_id = int(matches[0])
383383
break

0 commit comments

Comments
 (0)