2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 13:47:54 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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