MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / add_join_req

Method add_join_req

plugins/fsub.py:16–21  ·  view source on GitHub ↗
(self, user_id: int, channel_id: int)

Source from the content-addressed store, hash-verified

14 self.fsub_cache = db["fsub_cache"]
15
16 async def add_join_req(self, user_id: int, channel_id: int):
17 await self.join_requests.update_one(
18 {"user_id": user_id},
19 {"$addToSet": {"channels": channel_id}, "$set": {"created_at": datetime.datetime.utcnow()}},
20 upsert=True
21 )
22
23 async def has_joined_channel(self, user_id: int, channel_id: int) -> bool:
24 doc = await self.join_requests.find_one({"user_id": user_id})

Callers 1

join_reqsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected