mirror of
https://github.com/MelisaDev/melisa.git
synced 2024-11-11 19:07:28 +03:00
feat(docs): docs for cache and member
This commit is contained in:
parent
10e0bd1830
commit
95c618bbe1
4 changed files with 60 additions and 6 deletions
19
docs/source/cache.rst
Normal file
19
docs/source/cache.rst
Normal file
|
@ -0,0 +1,19 @@
|
|||
.. currentmodule:: melisa
|
||||
|
||||
Melisa Cache
|
||||
=============
|
||||
|
||||
Cache
|
||||
-------
|
||||
|
||||
AutoCacheModels
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. autoclass:: AutoCacheModels()
|
||||
|
||||
CacheManager
|
||||
~~~~~~~~~~~~~
|
||||
.. attributetable:: CacheManager
|
||||
|
||||
.. autoclass:: CacheManager()
|
||||
:inherited-members:
|
|
@ -7,6 +7,7 @@ Welcome to Melisa's documentation!
|
|||
|
||||
client
|
||||
models/index
|
||||
cache
|
||||
|
||||
|
||||
Indices and tables
|
||||
|
|
|
@ -33,6 +33,24 @@ TextChannel
|
|||
.. autoclass:: TextChannel()
|
||||
:inherited-members:
|
||||
|
||||
NoneTypedChannel
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: NoneTypedChannel
|
||||
|
||||
.. autoclass:: NoneTypedChannel()
|
||||
:inherited-members:
|
||||
|
||||
Member
|
||||
------
|
||||
|
||||
GuildMember
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: GuildMember
|
||||
|
||||
.. autoclass:: GuildMember()
|
||||
:inherited-members:
|
||||
|
||||
Guild
|
||||
------
|
||||
|
@ -123,3 +141,19 @@ ThreadsList
|
|||
|
||||
.. autoclass:: ThreadsList()
|
||||
:inherited-members:
|
||||
|
||||
|
||||
Webhook
|
||||
-------
|
||||
|
||||
WebhookType
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. autoclass:: WebhookType()
|
||||
|
||||
Webhook
|
||||
~~~~~~~~~~~~~
|
||||
.. attributetable:: Webhook
|
||||
|
||||
.. autoclass:: Webhook()
|
||||
:inherited-members:
|
||||
|
|
|
@ -22,18 +22,18 @@ class WebhookType(IntEnum):
|
|||
|
||||
Attributes
|
||||
----------
|
||||
Incoming:
|
||||
INCOMING:
|
||||
Incoming Webhooks can post messages to channels with a generated token
|
||||
Channel_Follower:
|
||||
CHANNEL_FOLLOWER:
|
||||
Channel Follower Webhooks are internal webhooks used with Channel Following
|
||||
to post new messages into channels
|
||||
Application:
|
||||
APPLICATION:
|
||||
Application webhooks are webhooks used with Interactions
|
||||
"""
|
||||
|
||||
Incoming = 1
|
||||
Channel_Follower = 2
|
||||
Application = 3
|
||||
INCOMING = 1
|
||||
CHANNEL_FOLLOWER = 2
|
||||
APPLICATION = 3
|
||||
|
||||
def __int__(self):
|
||||
return self.value
|
||||
|
|
Loading…
Reference in a new issue