diff options
| author | Rapptz <[email protected]> | 2019-02-12 20:21:29 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-02-12 20:22:47 -0500 |
| commit | 5d78f43e558cdd55e22eb12a090d3d75fd258a8e (patch) | |
| tree | 9485cf47c706eef9eb315c897e589702423a697a /discord/guild.py | |
| parent | Bump aiohttp requirement and fix AsyncWebhookAdapter (diff) | |
| download | discord.py-5d78f43e558cdd55e22eb12a090d3d75fd258a8e.tar.xz discord.py-5d78f43e558cdd55e22eb12a090d3d75fd258a8e.zip | |
Expose more information from partial invites, along with counts.
This adds the following information.
* `PartialInviteGuild` to replace `Object` patching
* `PartialInviteChannel` to replace `Object` patching
* Invite.approximate_member_count and Invite.approximate_presence_count
The new partial objects provide better documentation on what is
expected when you fetch random invites.
Fixes #1830
Diffstat (limited to 'discord/guild.py')
| -rw-r--r-- | discord/guild.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/guild.py b/discord/guild.py index 97247666..7777f0eb 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -83,7 +83,7 @@ class Guild(Hashable): 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. - icon: :class:`str` + icon: Optional[:class:`str`] The guild's icon. id: :class:`int` The guild's ID. @@ -114,7 +114,7 @@ class Guild(Hashable): - ``VERIFIED``: Guild is a "verified" server. - ``MORE_EMOJI``: Guild is allowed to have more than 50 custom emoji. - splash: :class:`str` + splash: Optional[:class:`str`] The guild's invite splash. """ @@ -601,7 +601,7 @@ class Guild(Hashable): channel upon creation. This parameter expects a :class:`dict` of overwrites with the target (either a :class:`Member` or a :class:`Role`) as the key and a :class:`PermissionOverwrite` as the value. - + Note -------- Creating a channel of a specified position will not update the position of @@ -641,7 +641,7 @@ class Guild(Hashable): The permissions will be automatically synced to category if no overwrites are provided. position: :class:`int` - The position in the channel list. This is a number that starts + The position in the channel list. This is a number that starts at 0. e.g. the top channel is position 0. topic: Optional[:class:`str`] The new channel's topic. @@ -679,7 +679,7 @@ class Guild(Hashable): This is similar to :meth:`create_text_channel` except makes a :class:`VoiceChannel` instead, in addition to having the following new parameters. - + Parameters ----------- bitrate: :class:`int` |