Promote confirmation fix.

This commit is contained in:
thedragonsinn
2023-10-07 18:32:47 +05:30
parent 27ce4efd13
commit bd2418d08c

View File

@@ -44,7 +44,7 @@ async def promote_or_demote(bot: bot, message: Message) -> None:
if not isinstance(user, User):
await response.edit(user, del_in=10)
return
full: bool = "-f" in message.flags
full: bool = "-full" in message.flags
anon: bool = "-anon" in message.flags
without_rights = "-wr" in message.flags
promote = message.cmd == "promote"
@@ -69,7 +69,7 @@ async def promote_or_demote(bot: bot, message: Message) -> None:
if title:
response_text += f"\nTitle: {title}"
if without_rights:
response_text += "Without Rights: True"
response_text += "\nWithout Rights: True"
await response.edit(text=response_text)
except Exception as e:
await response.edit(text=e, del_in=10, block=True)