From 17171aaa6032060c7fa845fa275f80f2ffbc2421 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 4 Dec 2015 23:43:31 -0500 Subject: Switch to NumPy style documentation. --- discord/role.py | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) (limited to 'discord/role.py') diff --git a/discord/role.py b/discord/role.py index 376be2c9..3e43270d 100644 --- a/discord/role.py +++ b/discord/role.py @@ -30,31 +30,23 @@ from .colour import Colour class Role(object): """Represents a Discord role in a :class:`Server`. - Instance attributes: - - .. attribute:: id - + Attributes + ---------- + id : str The ID for the role. - .. attribute:: name - + name : str The name of the role. - .. attribute:: permissions - - A :class:`Permissions` that represents the role's permissions. - .. attribute:: color - colour - - A :class:`Colour` representing the role colour. - .. attribute:: hoist - - A boolean representing if the role will be displayed separately from other members. - .. attribute:: position - + permissions : :class:`Permissions` + Represents the role's permissions. + color : :class:`Colour` + Represents the role colour. + hoist : bool + Indicates if the role will be displayed separately from other members. + position : int The position of the role. This number is usually positive. - .. attribute:: managed - - A boolean indicating if the role is managed by the server through some form of integration - such as Twitch. + managed : bool + Indicates if the role is managed by the server through some form of + integrations such as Twitch. """ def __init__(self, **kwargs): -- cgit v1.2.3