mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
Refactor to Application
This commit is contained in:
@@ -28,7 +28,7 @@ Models
|
|||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
|
||||||
.. autoclass:: flask_discord.models.Bot
|
.. autoclass:: flask_discord.models.Application
|
||||||
:members:
|
:members:
|
||||||
:inherited-members:
|
:inherited-members:
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
from .connections import UserConnection
|
from .connections import UserConnection
|
||||||
from .integration import Integration
|
from .integration import Integration
|
||||||
from .user import User, Bot
|
from .user import User, Application
|
||||||
from .guild import Guild
|
from .guild import Guild
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Guild",
|
"Guild",
|
||||||
"User",
|
"User",
|
||||||
"Bot",
|
"Application",
|
||||||
"UserConnection",
|
"UserConnection",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -221,6 +221,6 @@ class User(DiscordModelsBase):
|
|||||||
return self.connections
|
return self.connections
|
||||||
|
|
||||||
|
|
||||||
class Bot(User):
|
class Application(User):
|
||||||
"""Class representing the client user itself."""
|
"""Class representing the client user itself."""
|
||||||
# TODO: What is this?
|
# TODO: What is this?
|
||||||
|
|||||||
Reference in New Issue
Block a user