Refactor to Application

This commit is contained in:
weibeu
2021-06-09 23:41:00 +05:30
parent 8971e4f147
commit 30f3f6c2a4
3 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ Models
:members:
:inherited-members:
.. autoclass:: flask_discord.models.Bot
.. autoclass:: flask_discord.models.Application
:members:
:inherited-members:

View File

@@ -1,12 +1,12 @@
from .connections import UserConnection
from .integration import Integration
from .user import User, Bot
from .user import User, Application
from .guild import Guild
__all__ = [
"Guild",
"User",
"Bot",
"Application",
"UserConnection",
]

View File

@@ -221,6 +221,6 @@ class User(DiscordModelsBase):
return self.connections
class Bot(User):
class Application(User):
"""Class representing the client user itself."""
# TODO: What is this?