mirror of https://github.com/coddrago/Heroku
Add additional check for declined `request_join`
parent
1413def49e
commit
56e0430f70
|
@ -730,6 +730,11 @@ class Modules:
|
||||||
|
|
||||||
channel = await self.client.get_entity(peer)
|
channel = await self.client.get_entity(peer)
|
||||||
if channel.id in self._db.get("hikka.main", "declined_joins", []):
|
if channel.id in self._db.get("hikka.main", "declined_joins", []):
|
||||||
|
if assure_joined:
|
||||||
|
raise LoadError(
|
||||||
|
f"You need to join @{channel.username} in order to use this module"
|
||||||
|
)
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not isinstance(channel, Channel):
|
if not isinstance(channel, Channel):
|
||||||
|
|
Loading…
Reference in New Issue