idk, first attempt at adding docs ig. Probably gonna break so yea...
This commit is contained in:
@ -15,7 +15,7 @@ __title__ = 'discord'
|
||||
__author__ = 'Rapptz'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright 2015-2020 Rapptz'
|
||||
__version__ = '1.6.0.6a'
|
||||
__version__ = '1.6.0.6'
|
||||
|
||||
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
||||
|
||||
@ -60,9 +60,9 @@ from .raw_models import *
|
||||
from .team import *
|
||||
from .sticker import Sticker
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro releaselevel serial')
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro enhanced releaselevel serial')
|
||||
|
||||
version_info = VersionInfo(major=1, minor=6, micro=0, releaselevel='alpha', serial=0)
|
||||
version_info = VersionInfo(major=1, minor=6, micro=0, enhanced=6, releaselevel='alpha', serial=0)
|
||||
|
||||
try:
|
||||
from logging import NullHandler
|
||||
|
@ -121,7 +121,9 @@ class Colour:
|
||||
|
||||
@classmethod
|
||||
def random(cls):
|
||||
"""A factory method that returns a :class:`Colour` with a random value."""
|
||||
"""A factory method that returns a :class:`Colour` with a random value.
|
||||
|
||||
.. versionadded:: 1.6"""
|
||||
return cls(random.randint(0x000000,0xffffff))
|
||||
|
||||
@classmethod
|
||||
@ -129,19 +131,6 @@ class Colour:
|
||||
"""A factory method that returns a :class:`Colour` with a value of ``0``."""
|
||||
return cls(0)
|
||||
|
||||
@classmethod
|
||||
def random(cls):
|
||||
"""A factory method that returns a :class:`Colour` with a random hue.
|
||||
|
||||
.. note::
|
||||
|
||||
The random algorithm works by choosing a colour with a random hue but
|
||||
with maxed out saturation and value.
|
||||
|
||||
.. versionadded:: 1.6
|
||||
"""
|
||||
return cls.from_hsv(random.random(), 1, 1)
|
||||
|
||||
@classmethod
|
||||
def teal(cls):
|
||||
"""A factory method that returns a :class:`Colour` with a value of ``0x1abc9c``."""
|
||||
|
Reference in New Issue
Block a user