Commit Graph

2313 Commits

Author SHA1 Message Date
5c868ed871 Fix SyntaxError from PR implementing presences in member querying 2021-01-01 09:37:47 -05:00
59c11e71a2 Implement presences for Guild.query_members 2020-12-31 13:50:22 -05:00
ab2c433211 Fix AttributeError in Webhook message delete 2020-12-31 05:43:39 -05:00
94f76e6394 Fix webhook state coercion leading to unexpected behaviour.
Fix #6220
2020-12-29 08:26:39 -05:00
e9e81d1a55 [commands] fully remove command when CommandRegistrationError is raised for alias 2020-12-29 08:24:54 -05:00
faffc8eeb2 [commands] Correct concurrency never releasing during prepare call 2020-12-26 20:58:58 -05:00
5d75a0e7d6 Capitalize Discord in docs of message related attributes 2020-12-26 02:34:22 -05:00
624a9c8687 Allow Guild.create_role to accept an int as the colour parameter. 2020-12-25 02:22:59 -05:00
eb11079569 Document more guild features 2020-12-22 07:18:40 -05:00
36292a65ea remove extraneous assignment 2020-12-22 07:18:32 -05:00
92fffb5daa Revert "Fix table wrapping"
This reverts commit c911cd0dbd.
2020-12-18 21:18:54 -05:00
df57392aea Fix table wrapping 2020-12-18 21:18:54 -05:00
93f102ca90 Add support for Member.pending boolean attribute 2020-12-18 21:02:22 -05:00
f9dd200314 [commands] max_concurrency comes before cooldowns
Fix #6172
2020-12-17 22:21:45 -05:00
3fea697ba5 Add versionadded string for Emoji.url_as 2020-12-17 22:21:45 -05:00
13bba3afc2 Add Emoji.url_as 2020-12-17 22:20:00 -05:00
6515f33978 [tasks] Fix a typo in documentation 2020-12-14 22:18:40 -05:00
0216db0c0a [tasks] Add support for manually calling the wrapped coroutine 2020-12-14 22:11:37 -05:00
60f804c632 Update Windows opus binaries from 1.2.1 to 1.3.1 2020-12-12 20:23:57 -05:00
a20ddfa766 Add in Decoder 2020-12-12 20:12:04 -05:00
a4b20d08c3 Make File docstring raw for Python 3.9 compatibility 2020-12-11 03:22:36 -05:00
52d587d286 Allow PartialMessage to work with DM channels as well 2020-12-11 02:32:51 -05:00
186f4968d3 Export to_message_reference_dict to make PartialMessage.reply work 2020-12-11 00:39:05 -05:00
ebf623d9de Add operations you can do to a Message and PartialMessage to docs 2020-12-11 00:32:38 -05:00
3fe6d261f1 Add PartialMessage to allow working with channel/message_id pairs.
Fix #5905
2020-12-11 00:32:38 -05:00
bde5bb5d5c Fix WebhookMessages docstrings
Silly danno
2020-12-10 23:32:22 -05:00
44dc7a8e02 Add support for editing and deleting webhook messages.
Fix #6058
2020-12-09 20:15:35 -05:00
b00aaab0b2 Revert Message.edit logic that deals with allowed_mentions
It made no sense here.
2020-12-08 21:13:29 -05:00
08d632880a Fix embed suppression when using client-wide allowed_mentions 2020-12-08 20:42:26 -05:00
0995d07727 [commands] Added in missing channel links 2020-12-07 18:35:16 -05:00
fff2234823 Fix wrong documented permission for GuildChannel.invites()
I tested it just now, and manage_guild is not the permission you need to
fetch invites from a given channel. You need manage_channels.

Note that this isn't the same as Guild.invites(), which DOES use
manage_guild.
2020-12-07 18:34:51 -05:00
6e6a3bed1a Add created_at property to PartialEmoji
Also fixed docstring for PartialEmoji.url
2020-12-06 03:59:20 -05:00
6ea7fce828 [commands] Cog unload failures are swallowed.
Fix #6113
2020-12-03 19:17:28 -05:00
f8e428bd5b Add support for chunking AsyncIterator objects 2020-12-03 18:32:53 -05:00
a39c957ba5 Update documentation for rules/updates channels 2020-12-03 18:20:27 -05:00
80dd2c63c0 Fix Team.icon_url_as format argument default value 2020-11-28 19:58:48 -05:00
df3e5a15a6 [bug] call super constructor for CustomActivity to fix created_at 2020-11-28 03:17:05 -05:00
6b803acde4 [chore] Remove redundant imports
This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
2020-11-28 03:16:49 -05:00
0c69c99785 Fix UnboundLocalError for editing public_updates_channel 2020-11-28 03:16:28 -05:00
a4cb71b64e Fix Message.to_reference from the MessageReference changes 2020-11-27 03:31:10 -05:00
5ef30e34e5 Correct docstring missing ] 2020-11-27 02:36:14 -05:00
34f2fb36b1 Added MessageReference.resolved attribute to get replied to message 2020-11-27 02:24:39 -05:00
1014bfcb63 Allow MessageReference to be constructible by users 2020-11-27 01:08:52 -05:00
bd6ab93348 Code cleanup involving enums and message replies 2020-11-27 00:32:08 -05:00
d1cb30cccf Implement discord.Message.reply 2020-11-26 23:19:00 -05:00
fa30386073 Fix discord.RoleTags resolution 2020-11-26 23:00:09 -05:00
12d0ae71df Add a way to check if the websocket is rate limited.
This is mainly for low level decision making for utilities that need
to know whether to fetch a member by HTTP or to query through the
websocket.

The library already does this trick in some places so it's only fair
that end users possess the same ability as well.
2020-11-26 04:43:15 -05:00
e65dab3b23 Implement role tags.
This comes with:

* The RoleTags class
* Role.is_premium_subscriber()
* Role.is_bot_managed()
* Role.is_integration()
* Guild.self_role
* Guild.premium_subscriber_role
2020-11-26 01:57:24 -05:00
4adbe03d7c [commands] Allow setting description of cogs 2020-11-26 01:57:24 -05:00
5bad633987 Fix preview_asset key name in Sticker 2020-11-23 06:23:06 -05:00