diff --git a/docs/source/cache.rst b/docs/source/cache.rst new file mode 100644 index 0000000..714e736 --- /dev/null +++ b/docs/source/cache.rst @@ -0,0 +1,19 @@ +.. currentmodule:: melisa + +Melisa Cache +============= + +Cache +------- + +AutoCacheModels +~~~~~~~~~~~~~~~~~~ + +.. autoclass:: AutoCacheModels() + +CacheManager +~~~~~~~~~~~~~ +.. attributetable:: CacheManager + +.. autoclass:: CacheManager() + :inherited-members: diff --git a/docs/source/index.rst b/docs/source/index.rst index 8964a24..7313376 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -7,6 +7,7 @@ Welcome to Melisa's documentation! client models/index + cache Indices and tables diff --git a/docs/source/models/guild.rst b/docs/source/models/guild.rst index f5228b9..907b656 100644 --- a/docs/source/models/guild.rst +++ b/docs/source/models/guild.rst @@ -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: diff --git a/melisa/models/guild/webhook.py b/melisa/models/guild/webhook.py index 93ffa9b..2e26960 100644 --- a/melisa/models/guild/webhook.py +++ b/melisa/models/guild/webhook.py @@ -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