2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 14:15:25 +00:00

Fix format string for joinchat struct

This commit is contained in:
trgwii
2020-06-11 13:26:17 +02:00
committed by GitHub
parent a11e35d3a7
commit c1edb7bc27

View File

@@ -91,7 +91,7 @@ const isPublic = async (username: string) => {
const inviteLinkToGroupID = (url: URL) => { const inviteLinkToGroupID = (url: URL) => {
if (url.pathname.toLowerCase().startsWith("/joinchat/")) { if (url.pathname.toLowerCase().startsWith("/joinchat/")) {
const [, groupID] = jspack.Unpack( const [, groupID] = jspack.Unpack(
">LLC", ">LLQ",
Buffer.from(url.pathname.split("/")[2], "base64") Buffer.from(url.pathname.split("/")[2], "base64")
); );
return groupID; return groupID;