Commit Graph
3139 Commits
Author SHA1 Message Date
SuzuZusuandGitHub 491b426205 Fix documentation with reference in GroupChannel.permissions_for 2021-02-17 04:16:38 -05:00
Rapptz a0404807d5 [commands] Add support for rgb function in ColourConverter
This also adds support for 3 digit hex.

Fixes #6374
2021-02-07 07:18:56 -05:00
Alex NørgaardandGitHub 68eb844d48 [commands] Add discord.Guild converter and GuildNotFound error
* Add discord.Guild converter and GuildNotFound error

* note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None

* edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception.
2021-02-07 05:32:33 -05:00
Peter DelevoryasandGitHub af67256949 Ensure Message.call is None by default
`Message` has an attribute `call` which is claimed to have type
`Optional[CallMessage]`. 

But `Message` doesn't actually ensure that `call` is initialized to a value in
`__init__`. This commit fixes that inconsistency.
2021-02-06 05:42:22 -05:00
ZomatreeandGitHub 0d1e15bbc2 Add versionchanged to guild.create_role 2021-01-26 23:35:52 -05:00
Rapptz 61884dd9ac Use member provided data in typing_start event if not in cache
Apparently Discord had this all along.

ref: #5965, #5983
2021-01-24 05:21:13 -05:00
Jonas BohmannandRapptz 0d8ac41551 [commands] Fix documented type of Context.cog 2021-01-24 05:17:47 -05:00
z03handRapptz fb9aa2486d Add PartialEmoji.url_as 2021-01-24 05:17:47 -05:00
ChristopherJHartandGitHub 050bf74f5d Clarify on_raw_message_edit cached message nature 2021-01-18 04:55:59 -05:00
z03handGitHub d752916995 Add MessageReference.jump_url 2021-01-17 00:21:00 -05:00
JoshandGitHub fce67c32c9 Add spoiler attribute to File 2021-01-17 00:18:10 -05:00
PikalaxALTandGitHub b7c7200f4d [commands] Add linesep kwarg to Paginator 2021-01-17 00:15:36 -05:00
LucasandGitHub d7b41e0a21 Fix User public flags not updating 2021-01-17 00:09:15 -05:00
Rapptz c5a44d8303 Version bump for development 2021-01-16 05:41:21 -05:00
Alex NørgaardandGitHub c72dbf28ba [commands] Fix Command duplicates in HelpCommand.get_bot_mapping 2021-01-16 05:36:08 -05:00
Anurag SinghandGitHub 941e1efcb6 PartialMessage.edit returns a full Message 2021-01-15 07:10:20 -05:00
Rapptz b9a99238e8 [commands] Add Command/Cog.has_error_handler
This allows querying the state without relying on internal undocumented
attributes.
2021-01-15 06:00:45 -05:00
JoshandGitHub 73a783cd6b Strip both - and _ from newcog class names 2021-01-15 05:34:05 -05:00
Nihaal SanghaandGitHub 69bdc3a184 Change copyright year to present 2021-01-15 05:28:11 -05:00
JoshandGitHub eeafc9363f [commands] Add PartialMessageConverter 2021-01-15 05:26:03 -05:00
jack1142andGitHub ed2650f786 Fix documented type of Command.usage 2021-01-14 03:17:18 -05:00
Perry CateandGitHub bbbda4ec00 Update add_roles docstring to mention role order. 2021-01-14 03:11:58 -05:00
BeatButtonandGitHub bc0e214b98 [commands] Correct ChannelNotFound docstring 2021-01-12 02:34:23 -05:00
Rapptz fc65526e9c Bump version to 1.6 2021-01-07 23:57:15 -05:00
Rapptz 442962596e Dispatch user updates if the global cache gets stale in update events 2021-01-07 23:57:14 -05:00
Rapptz 3a75816ba1 Support setting the preferred locale via Guild.edit
Fix #6267
2021-01-05 22:43:22 -05:00
Rapptz 5c868ed871 Fix SyntaxError from PR implementing presences in member querying 2021-01-01 09:37:47 -05:00
Nadir ChowdhuryandGitHub 59c11e71a2 Implement presences for Guild.query_members 2020-12-31 13:50:22 -05:00
Alex NørgaardandGitHub ab2c433211 Fix AttributeError in Webhook message delete 2020-12-31 05:43:39 -05:00
Rapptz 94f76e6394 Fix webhook state coercion leading to unexpected behaviour.
Fix #6220
2020-12-29 08:26:39 -05:00
Sebastian LawandGitHub e9e81d1a55 [commands] fully remove command when CommandRegistrationError is raised for alias 2020-12-29 08:24:54 -05:00
Dan HessandGitHub faffc8eeb2 [commands] Correct concurrency never releasing during prepare call 2020-12-26 20:58:58 -05:00
MisaandGitHub 5d75a0e7d6 Capitalize Discord in docs of message related attributes 2020-12-26 02:34:22 -05:00
Alex NørgaardandGitHub 624a9c8687 Allow Guild.create_role to accept an int as the colour parameter. 2020-12-25 02:22:59 -05:00
Rapptz eb11079569 Document more guild features 2020-12-22 07:18:40 -05:00
Sebastian LawandGitHub 36292a65ea remove extraneous assignment 2020-12-22 07:18:32 -05:00
Rapptz 92fffb5daa Revert "Fix table wrapping"
This reverts commit c911cd0dbd.
2020-12-18 21:18:54 -05:00
Rapptz df57392aea Fix table wrapping 2020-12-18 21:18:54 -05:00
Rapptz 93f102ca90 Add support for Member.pending boolean attribute 2020-12-18 21:02:22 -05:00
Rapptz f9dd200314 [commands] max_concurrency comes before cooldowns
Fix #6172
2020-12-17 22:21:45 -05:00
Rapptz 3fea697ba5 Add versionadded string for Emoji.url_as 2020-12-17 22:21:45 -05:00
Daggy1234andGitHub 13bba3afc2 Add Emoji.url_as 2020-12-17 22:20:00 -05:00
Rapptz 6515f33978 [tasks] Fix a typo in documentation 2020-12-14 22:18:40 -05:00
Rapptz 0216db0c0a [tasks] Add support for manually calling the wrapped coroutine 2020-12-14 22:11:37 -05:00
Devon RandGitHub 60f804c632 Update Windows opus binaries from 1.2.1 to 1.3.1 2020-12-12 20:23:57 -05:00
Devon RandGitHub a20ddfa766 Add in Decoder 2020-12-12 20:12:04 -05:00
TicClickandGitHub a4b20d08c3 Make File docstring raw for Python 3.9 compatibility 2020-12-11 03:22:36 -05:00
Rapptz 52d587d286 Allow PartialMessage to work with DM channels as well 2020-12-11 02:32:51 -05:00
Rapptz 186f4968d3 Export to_message_reference_dict to make PartialMessage.reply work 2020-12-11 00:39:05 -05:00
Rapptz ebf623d9de Add operations you can do to a Message and PartialMessage to docs 2020-12-11 00:32:38 -05:00