aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Update thread permissionsJames Gayfer2021-08-261-2/+2
| | | | | | | Discord has renamed / repurposed "Use Public Threads" and "Use Private Threads", as well as added a new permission "Send Messages in Threads". For more information, see: https://github.com/discord/discord-api-docs/pull/3672
* Add type hint for suppress parameterRapptz2021-08-231-1/+1
|
* Remove in-place edits and return fresh instances insteadRapptz2021-08-231-6/+7
| | | | Fixes #4098
* Use getattr for default_auto_archive_duration in Message.create_threadRapptz2021-08-231-1/+2
| | | | | Some channel types do not have this attribute so a fallback is necessary to prevent the attribute access from erroring.
* Fix message.py typehintsStocker2021-08-231-12/+19
|
* Use channel default auto archive durationJames Gayfer2021-08-181-3/+3
| | | | | | | | | Currently creating a new thread uses a default auto archive duration of 1440 minutes, or 1 day. Rather than prescribing our own default, we can use the default auto archive duration that is set on the channel. This ensures that newly created threads will respect the default auto archive duration as prescribed by the user.
* Fix documentation for Message.is_systemRapptz2021-08-181-3/+11
| | | | Also fixes some formatting
* Fix missing or broken versionadded in docstringsAkshuAgarwal2021-08-181-0/+2
| | | This also documents BadFlagArgument.flag
* Add other message types exclusions to Message.is_systemSYCKGit2021-08-181-1/+1
| | | | Message.is_system was checking if self.type is MessageType.default but now there are other MessageTypes that are not system messages
* Rename start_thread to create_thread for consistencyRapptz2021-08-121-6/+6
|
* Add support for PartialMessageable instancesRapptz2021-08-101-3/+3
| | | | | This allows library users to send messages to channels without fetching it first.
* implement guild stickersNadir Chowdhury2021-07-301-4/+4
|
* Allow creating a public thread without a starter messageRapptz2021-07-281-2/+1
|
* Fix PartialMessage rejecting Threadsnickofolas2021-07-281-2/+9
|
* Add system_content for thread message types, fix other system_content issuesLilly Rose Berner2021-07-281-10/+37
|
* [commands] Fix (Partial)MessageConverter to work with thread messagesNadir Chowdhury2021-07-101-7/+10
|
* Fix Client.fetch_channel not returning ThreadAlex Nørgaard2021-07-031-1/+1
|
* Document TextChannel.start_thread return typeRapptz2021-07-031-0/+5
|
* Change Message.__repr__ to show inherited type nameRapptz2021-07-031-2/+2
|
* [docs] Fix more referencesJosh2021-07-011-1/+1
| | | Co-Authored-By: Riley Shaw <[email protected]>
* Typehint Member and various typing fixesRapptz2021-06-301-2/+5
|
* Add explicit types to variables in Message typesRapptz2021-06-291-39/+47
|
* Set Message.guild from guild_id if unavailable through Message.channelLilly Rose Berner2021-06-281-12/+10
|
* Rework Message.edit implementationRapptz2021-06-281-64/+46
|
* Add support for sending multiple embedsAomi Vel2021-06-271-4/+32
|
* Change how threads are createdRapptz2021-06-081-1/+1
| | | | | | | | Instead of start_public_thread and start_private_thread they'll now be one method. I might revert this if starting a public thread without a message never ends up happening.
* Allow Message.channel to be a threadRapptz2021-06-081-4/+5
|
* Implement remaining HTTP endpoints on threadsRapptz2021-06-081-2/+41
| | | | | I'm not sure if I missed any -- but this is the entire documented set so far.
* Return message content for replies in Message.system_contentLilly Rose Berner2021-06-061-3/+6
|
* Remove view syncing before editing in viewsRapptz2021-05-311-0/+2
| | | | | This prevents a potential race condition when a MESSAGE_UPDATE is received syncing and refreshing the view components causing a desync.
* Check for view finished state before resuming listening on editRapptz2021-05-311-2/+2
|
* Add support for editing in views in PartialMessageRapptz2021-05-311-1/+20
|
* Fix Message.edit typings to take View parametersRapptz2021-05-301-0/+2
|
* Add initial support for buttons and componentsRapptz2021-05-271-1/+32
|
* Update docs for (Partial)Message.publish to reflect the actual permissions ↵Alex Nørgaard2021-05-151-1/+3
| | | | needed
* Type up **kwargs of various methods Nadir Chowdhury2021-05-101-3/+21
|
* 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
|