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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user