mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
pyrofork: Add privacy_policy_url field to class BotInfo
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
cbd632c600
commit
945290692e
1 changed files with 7 additions and 2 deletions
|
|
@ -33,14 +33,18 @@ class BotInfo(Object):
|
|||
|
||||
description (``str``):
|
||||
Description of the bot;
|
||||
|
||||
privacy_policy_url (``str``, *optional*):
|
||||
Privacy policy URL of the bot.
|
||||
"""
|
||||
|
||||
def __init__(self, name: str, about: str, description: str):
|
||||
def __init__(self, name: str, about: str, description: str, privacy_policy_url: str = None):
|
||||
super().__init__()
|
||||
|
||||
self.name = name
|
||||
self.about = about
|
||||
self.description = description
|
||||
self.privacy_policy_url = privacy_policy_url
|
||||
|
||||
|
||||
@staticmethod
|
||||
|
|
@ -48,5 +52,6 @@ class BotInfo(Object):
|
|||
return BotInfo(
|
||||
name=getattr(bot_info,"name", None),
|
||||
about=getattr(bot_info,"about", None),
|
||||
description=getattr(bot_info,"description", None)
|
||||
description=getattr(bot_info,"description", None),
|
||||
privacy_policy_url=getattr(bot_info,"privacy_policy_url", None)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue