aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
Diffstat (limited to 'discord')
-rw-r--r--discord/activity.py2
-rw-r--r--discord/channel.py2
-rw-r--r--discord/colour.py2
-rw-r--r--discord/guild.py4
-rw-r--r--discord/invite.py2
-rw-r--r--discord/member.py4
-rw-r--r--discord/permissions.py2
-rw-r--r--discord/template.py2
-rw-r--r--discord/user.py2
9 files changed, 11 insertions, 11 deletions
diff --git a/discord/activity.py b/discord/activity.py
index c56fec32..0e0e59bc 100644
--- a/discord/activity.py
+++ b/discord/activity.py
@@ -420,7 +420,7 @@ class Streaming(BaseActivity):
name: Optional[:class:`str`]
The stream's name.
details: Optional[:class:`str`]
- Same as :attr:`name`
+ An alias for :attr:`name`
game: Optional[:class:`str`]
The game being streamed.
diff --git a/discord/channel.py b/discord/channel.py
index 442f80b2..a554d0d5 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -82,7 +82,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
category_id: Optional[:class:`int`]
The category channel ID this channel belongs to, if applicable.
topic: Optional[:class:`str`]
- The channel's topic. None if it doesn't exist.
+ The channel's topic. ``None`` if it doesn't exist.
position: :class:`int`
The position in the channel list. This is a number that starts at 0. e.g. the
top channel is position 0.
diff --git a/discord/colour.py b/discord/colour.py
index 78221eef..35aa6827 100644
--- a/discord/colour.py
+++ b/discord/colour.py
@@ -28,7 +28,7 @@ import colorsys
class Colour:
"""Represents a Discord role colour. This class is similar
- to an (red, green, blue) :class:`tuple`.
+ to a (red, green, blue) :class:`tuple`.
There is an alias for this called Color.
diff --git a/discord/guild.py b/discord/guild.py
index a8ac04cf..56b8462b 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -88,7 +88,7 @@ class Guild(Hashable):
afk_timeout: :class:`int`
The timeout to get sent to the AFK channel.
afk_channel: Optional[:class:`VoiceChannel`]
- The channel that denotes the AFK channel. None if it doesn't exist.
+ The channel that denotes the AFK channel. ``None`` if it doesn't exist.
icon: Optional[:class:`str`]
The guild's icon.
id: :class:`int`
@@ -98,7 +98,7 @@ class Guild(Hashable):
unavailable: :class:`bool`
Indicates if the guild is unavailable. If this is ``True`` then the
reliability of other attributes outside of :meth:`Guild.id` is slim and they might
- all be None. It is best to not do anything with the guild if it is unavailable.
+ all be ``None``. It is best to not do anything with the guild if it is unavailable.
Check the :func:`on_guild_unavailable` and :func:`on_guild_available` events.
max_presences: Optional[:class:`int`]
diff --git a/discord/invite.py b/discord/invite.py
index b6d45912..e8049169 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -156,7 +156,7 @@ class PartialInviteGuild:
return self.icon_url_as()
def is_icon_animated(self):
- """:class:`bool`: Returns True if the guild has an animated icon.
+ """:class:`bool`: Returns ``True`` if the guild has an animated icon.
.. versionadded:: 1.4
"""
diff --git a/discord/member.py b/discord/member.py
index 44a8e094..17c3d4a2 100644
--- a/discord/member.py
+++ b/discord/member.py
@@ -60,7 +60,7 @@ class VoiceState:
afk: :class:`bool`
Indicates if the user is currently in the AFK channel in the guild.
channel: Optional[:class:`VoiceChannel`]
- The voice channel that the user is currently connected to. None if the user
+ The voice channel that the user is currently connected to. ``None`` if the user
is not currently in a voice channel.
"""
@@ -373,7 +373,7 @@ class Member(discord.abc.Messageable, _BaseUser):
@property
def activity(self):
"""Union[:class:`BaseActivity`, :class:`Spotify`]: Returns the primary
- activity the user is currently doing. Could be None if no activity is being done.
+ activity the user is currently doing. Could be ``None`` if no activity is being done.
.. note::
diff --git a/discord/permissions.py b/discord/permissions.py
index adc6a926..d550bca6 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -148,7 +148,7 @@ class Permissions(BaseFlags):
@classmethod
def all(cls):
"""A factory method that creates a :class:`Permissions` with all
- permissions set to True."""
+ permissions set to ``True``."""
return cls(0b01111111111111111111111111111111)
@classmethod
diff --git a/discord/template.py b/discord/template.py
index 905f5515..70d4fd2a 100644
--- a/discord/template.py
+++ b/discord/template.py
@@ -55,7 +55,7 @@ class Template:
Attributes
-----------
- code: :code:`str`
+ code: :class:`str`
The template code.
uses: :class:`int`
How many time the template has been used.
diff --git a/discord/user.py b/discord/user.py
index e5e9640d..903a0b00 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -303,7 +303,7 @@ class ClientUser(BaseUser):
discriminator: :class:`str`
The user's discriminator. This is given when the username has conflicts.
avatar: Optional[:class:`str`]
- The avatar hash the user has. Could be None.
+ The avatar hash the user has. Could be ``None``.
bot: :class:`bool`
Specifies if the user is a bot account.
system: :class:`bool`