mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Rename Colour.to_tuple to Colour.to_rgb.
This commit is contained in:
parent
6f53491f9a
commit
7a84661312
@ -93,7 +93,7 @@ class Colour:
|
||||
"""Returns the blue component of the colour."""
|
||||
return self._get_byte(0)
|
||||
|
||||
def to_tuple(self):
|
||||
def to_rgb(self):
|
||||
"""Returns an (r, g, b) tuple representing the colour."""
|
||||
return (self.r, self.g, self.b)
|
||||
|
||||
|
@ -343,6 +343,10 @@ They will be enumerated here.
|
||||
|
||||
- Use :attr:`Message.created_at` instead.
|
||||
|
||||
- ``Colour.to_tuple()``
|
||||
|
||||
- Use :meth:`Colour.to_rgb` instead.
|
||||
|
||||
**Added**
|
||||
|
||||
- :attr:`VoiceChannel.members` for fetching members connected to a voice channel.
|
||||
@ -360,6 +364,7 @@ They will be enumerated here.
|
||||
- :meth:`Guild.audit_logs` to fetch the guild's audit logs.
|
||||
- :attr:`Message.webhook_id` to fetch the message's webhook ID.
|
||||
- :meth:`TextChannel.is_nsfw` to check if a text channel is NSFW.
|
||||
- :meth:`Colour.from_rgb` to construct a :class:`Colour` from RGB tuple.
|
||||
|
||||
.. _migrating_1_0_sending_messages:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user