Skip to content

Commit 169354c

Browse files
committed
Fix v1.x
1 parent 8a30729 commit 169354c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ async def _get_build_number(session): # Thank you Discord-S.C.U.M
568568
build_url = 'https://discord.com/assets/' + re.compile(r'assets/+([a-z0-9]+)\.js').findall(login_page)[-2] + '.js'
569569
build_request = await session.request('get', build_url, headers={'Accept-Encoding': 'gzip, deflate'}, timeout=10)
570570
build_file = await build_request.text()
571-
build_index = build_file.find('buildNumber') + 14
571+
build_index = build_file.find('buildNumber') + 24
572572
return int(build_file[build_index:build_index + 5])
573573
except:
574574
log.warning('Could not fetch client build number.')

0 commit comments

Comments
 (0)