| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,26 +35,26 @@ DMChannel | |||
| 35 | 35 | :members: | |
| 36 | 36 | ||
| 37 | 37 | GroupDMChannel | |
| 38 | - ~~~~~~~~~~ | ||
| 38 | + ~~~~~~~~~~~~~~~ | ||
| 39 | 39 | ||
| 40 | 40 | .. autoclass:: GroupDMChannel | |
| 41 | 41 | :members: | |
| 42 | 42 | ||
| 43 | 43 | TextChannel | |
| 44 | - ~~~~~~~~~~ | ||
| 44 | + ~~~~~~~~~~~~ | ||
| 45 | 45 | ||
| 46 | 46 | .. autoclass:: TextChannel | |
| 47 | 47 | :members: | |
| 48 | 48 | ||
| 49 | 49 | VoiceChannel | |
| 50 | - ~~~~~~~~~~ | ||
| 50 | + ~~~~~~~~~~~~ | ||
| 51 | 51 | ||
| 52 | 52 | .. autoclass:: VoiceChannel | |
| 53 | 53 | :members: | |
| 54 | 54 | ||
| 55 | 55 | ||
| 56 | 56 | Embed | |
| 57 | - ~~~~~~~~~~ | ||
| 57 | + ~~~~~~ | ||
| 58 | 58 | ||
| 59 | 59 | .. autoclass:: Embed | |
| 60 | 60 | :members: | |
@@ -108,8 +108,20 @@ User | |||
| 108 | 108 | .. autoclass:: User | |
| 109 | 109 | :members: | |
| 110 | 110 | ||
| 111 | + Relation | ||
| 112 | + ~~~~~~~~~ | ||
| 113 | + | ||
| 114 | + .. autonamedtuple:: Relation | ||
| 115 | + | ||
| 116 | + | ||
| 117 | + Status | ||
| 118 | + ~~~~~~~ | ||
| 119 | + | ||
| 120 | + .. autonamedtuple:: Status | ||
| 121 | + | ||
| 122 | + | ||
| 111 | 123 | Enums | |
| 112 | - ------ | ||
| 124 | + ====== | ||
| 113 | 125 | ||
| 114 | 126 | The api uses enums to say what variant of something is, these represent those enums | |
| 115 | 127 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,6 +32,8 @@ | |||
| 32 | 32 | extensions = [ | |
| 33 | 33 | "sphinx.ext.napoleon", | |
| 34 | 34 | "sphinx.ext.autodoc", | |
| 35 | + "sphinx_toolbox.installation", | ||
| 36 | + "sphinx_toolbox.more_autodoc.autonamedtuple" | ||
| 35 | 37 | ] | |
| 36 | 38 | ||
| 37 | 39 | # Add any paths that contain templates here, relative to this directory. | |
@@ -42,6 +44,7 @@ | |||
| 42 | 44 | # This pattern also affects html_static_path and html_extra_path. | |
| 43 | 45 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | |
| 44 | 46 | ||
| 47 | + add_module_names = False | ||
| 45 | 48 | ||
| 46 | 49 | # -- Options for HTML output ------------------------------------------------- | |
| 47 | 50 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | - Sphinx==4.1.2 | ||
| 1 | + Sphinx==3.5.4 | ||
| 2 | 2 | sphinx-nameko-theme==0.0.3 | |
| 3 | 3 | aiohttp==3.7.4.post0 | |
| 4 | 4 | ulid-py==1.1.0 | |
| 5 | + sphinx-toolbox==2.13.0 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | from .asset import Asset | |
| 2 | - from .channel import DMChannel, Channel, GroupDMChannel, SavedMessageChannel, VoiceChannel | ||
| 2 | + from .channel import DMChannel, Channel, GroupDMChannel, SavedMessageChannel, VoiceChannel, TextChannel | ||
| 3 | 3 | from .client import Client | |
| 4 | 4 | from .embed import Embed | |
| 5 | 5 | from .errors import HTTPError, RevoltError, ServerError | |
@@ -10,6 +10,6 @@ | |||
| 10 | 10 | from .permissions import Permissions | |
| 11 | 11 | from .role import Role | |
| 12 | 12 | from .server import Server | |
| 13 | - from .user import User | ||
| 13 | + from .user import User, Status, Relation | ||
| 14 | 14 | ||
| 15 | 15 | __version__ = (0, 0, 1) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,19 +10,12 @@ | |||
| 10 | 10 | from .types import User as UserPayload, UserRelation | |
| 11 | 11 | ||
| 12 | 12 | class Relation(NamedTuple): | |
| 13 | - """A namedtuple representing a relation between the bot and a user | ||
| 14 | - | ||
| 15 | - Attributes | ||
| 16 | - ----------- | ||
| 17 | - type: :class:`RelationshipType` | ||
| 18 | - The type of relationship | ||
| 19 | - user: :class:`User` | ||
| 20 | - The user the relationship is for | ||
| 21 | - """ | ||
| 13 | + """A namedtuple representing a relation between the bot and a user""" | ||
| 22 | 14 | type: RelationshipType | |
| 23 | 15 | user: User | |
| 24 | 16 | ||
| 25 | 17 | class Status(NamedTuple): | |
| 18 | + """A namedtuple representing a users status""" | ||
| 26 | 19 | text: Optional[str] | |
| 27 | 20 | presence: Optional[PresenceType] | |
| 28 | 21 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments