aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typings in message.pyRapptz2021-05-051-5/+5
|
* Fix supressing messages leading a 400 errorRapptz2021-05-011-1/+1
| | | | | This only makes it so allowed_mentions are passed if the message is authored by the bot itself.
* Reformat message.py fileRapptz2021-05-011-21/+71
|
* Add types to PartialMessageRapptz2021-05-011-23/+15
|
* Add typings for message related classesZomatree2021-05-011-89/+116
|
* Add support for editing message attachmentsRapptz2021-04-211-0/+27
|
* Add `MessageType.guild_invite_reminder`Nadir Chowdhury2021-04-181-0/+3
|
* Add missing reprs to some objectsSteve C2021-04-171-0/+3
| | | These are WidgetMember, BaseUser, and DeletedReferencedMessage
* Refactor save() and read() into AssetMixinRapptz2021-04-171-1/+1
|
* Use default allowed_mentions in Message.editRapptz2021-04-161-1/+2
| | | | Fix #6745
* Revert Attachment.save code to prior implementationRapptz2021-04-161-2/+2
|
* Rewrite Asset designRapptz2021-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | This is a breaking change. This does the following transformations, assuming `asset` represents an asset type. Object.is_asset_animated() => Object.asset.is_animated() Object.asset => Object.asset.key Object.asset_url => Object.asset_url Object.asset_url_as => Object.asset.replace(...) Since the asset type now requires a key (or hash, if you will), Emoji had to be flattened similar to how Attachment was done since these assets are keyed solely ID. Emoji.url (Asset) => Emoji.url (str) Emoji.url_as => removed Emoji.url.read => Emoji.read Emoji.url.save => Emoji.save This transformation was also done to PartialEmoji.
* Restrict snowflake regexes to 15-20 digitsNadir Chowdhury2021-04-161-3/+3
|
* [docs] Fix various unresolved referencesNadir Chowdhury2021-04-151-3/+3
|
* Fix fail_if_not_exists not being set when constructed with stateRapptz2021-04-141-0/+1
|
* Use f-strings in more places that were missed.Rapptz2021-04-081-14/+14
|
* Use `asyncio.create_task` over `asyncio.ensure_future`Nadir Chowdhury2021-04-051-1/+1
|
* Fix versionadded not showing in docs for Attachment.content_typeLogan2021-04-051-1/+1
|
* Convert datetimes to aware datetimes with UTC.Rapptz2021-04-041-5/+2
| | | | | Naive datetimes will now be interpreted as local time throughout the library.
* Remove userbot functionalityRapptz2021-04-041-66/+2
| | | | | This has a lot of legacy and cruft so there may be some stuff I've missed but this first pass is enough to get a clear separation.
* Modernize code to use f-stringsRapptz2021-04-041-16/+14
| | | | | This also removes the encoding on the top, since Python 3 does it by default. It also changes some methods to use `yield from`.
* Add content_type to AttachmentZomatree2021-04-031-1/+6
|
* Add support for fail_if_not_exists in MessageReferenceLilly Rose Berner2021-03-301-6/+28
|
* Add remove_markdown helper functionEdwin2021-03-281-3/+3
|
* Make Attachment hashable and castable to strRapptz2021-03-251-1/+25
|
* remove trailing whitespaceNadir Chowdhury2021-03-131-2/+2
|
* Fix typo with guild_discovery_grace_period_final_warningNadir Chowdhury2021-03-021-1/+1
|
* Add remaining v6 message typesNadir Chowdhury2021-02-231-0/+15
|
* Deprecate non-bot methodsNadir Chowdhury2021-02-231-0/+6
|
* Clarify Message.nonce documentationRapptz2021-02-181-1/+1
| | | | Fix #2451
* Ensure Message.call is None by defaultPeter Delevoryas2021-02-061-0/+1
| | | | | | | `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.
* Add MessageReference.jump_urlz03h2021-01-171-0/+9
|
* PartialMessage.edit returns a full MessageAnurag Singh2021-01-151-1/+99
|
* Change copyright year to presentNihaal Sangha2021-01-151-1/+1
|
* Capitalize Discord in docs of message related attributesMisa2020-12-261-2/+2
|
* Allow PartialMessage to work with DM channels as wellRapptz2020-12-111-9/+9
|
* Export to_message_reference_dict to make PartialMessage.reply workRapptz2020-12-111-0/+1
|
* Add operations you can do to a Message and PartialMessage to docsRapptz2020-12-111-1/+27
|
* Add PartialMessage to allow working with channel/message_id pairs.Rapptz2020-12-111-21/+119
| | | | Fix #5905
* Revert Message.edit logic that deals with allowed_mentionsRapptz2020-12-081-26/+11
| | | | It made no sense here.
* Fix embed suppression when using client-wide allowed_mentions Lilly Rose Berner2020-12-081-1/+1
|
* [chore] Remove redundant importsNadir Chowdhury2020-11-281-1/+0
| | | This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
* Fix Message.to_reference from the MessageReference changesRapptz2020-11-271-1/+3
|
* Correct docstring missing ]Rapptz2020-11-271-1/+1
|
* Added MessageReference.resolved attribute to get replied to messageRapptz2020-11-271-2/+65
|
* Allow MessageReference to be constructible by usersRapptz2020-11-271-6/+22
|
* Code cleanup involving enums and message repliesRapptz2020-11-271-2/+70
|
* Implement discord.Message.replyPikalaxALT2020-11-261-46/+77
|
* Ensure member key is not overwritten by author key in MESSAGE_UPDATERapptz2020-11-231-7/+14
| | | | | | | This also coerces the older message to take the member data from the newer message so the types are not incompatible. Fix #5999
* Add sticker supportZomatree2020-11-231-2/+8
|