Lilly Rose Berner
6b1d46a1ea
Set Message.guild from guild_id if unavailable through Message.channel
4 years ago
Rapptz
b1836c5577
Rework Message.edit implementation
4 years ago
Aomi Vel
47e6a754e4
Add support for sending multiple embeds
4 years ago
Rapptz
b2176dc0ef
Change how threads are created
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.
4 years ago
Rapptz
ac95b8b85b
Allow Message.channel to be a thread
4 years ago
Rapptz
c1ce3b949f
Implement remaining HTTP endpoints on threads
I'm not sure if I missed any -- but this is the entire documented set
so far.
4 years ago
Lilly Rose Berner
fb0c6c56e1
Return message content for replies in Message.system_content
4 years ago
Rapptz
d0097c4281
Remove view syncing before editing in views
This prevents a potential race condition when a MESSAGE_UPDATE is
received syncing and refreshing the view components causing a desync.
4 years ago
Rapptz
4a3491cc0a
Check for view finished state before resuming listening on edit
4 years ago
Rapptz
8dafe4f544
Add support for editing in views in PartialMessage
4 years ago
Rapptz
02c317d9a4
Fix Message.edit typings to take View parameters
4 years ago
Rapptz
98570793e4
Add initial support for buttons and components
4 years ago
Alex Nørgaard
fb20c4c3d4
Update docs for (Partial)Message.publish to reflect the actual permissions needed
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Rapptz
ca92f37f18
Fix typings in message.py
4 years ago
Rapptz
83611edb66
Fix supressing messages leading a 400 error
This only makes it so allowed_mentions are passed if the message is
authored by the bot itself.
4 years ago
Rapptz
135a7e9e5a
Reformat message.py file
4 years ago
Rapptz
d940486552
Add types to PartialMessage
4 years ago
Zomatree
3381d1e089
Add typings for message related classes
4 years ago
Rapptz
275a754abd
Add support for editing message attachments
4 years ago
Nadir Chowdhury
95777230b0
Add `MessageType.guild_invite_reminder`
4 years ago
Steve C
86f10f6dd6
Add missing reprs to some objects
These are WidgetMember, BaseUser, and DeletedReferencedMessage
4 years ago
Rapptz
fed259a83b
Refactor save() and read() into AssetMixin
4 years ago
Rapptz
f6fcffbab5
Use default allowed_mentions in Message.edit
Fix #6745
4 years ago
Rapptz
6ba3d89076
Revert Attachment.save code to prior implementation
4 years ago
Rapptz
9eaf1e85e4
Rewrite Asset design
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.
4 years ago
Nadir Chowdhury
d3ac191a67
Restrict snowflake regexes to 15-20 digits
4 years ago
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references
4 years ago
Rapptz
da6119e04c
Fix fail_if_not_exists not being set when constructed with state
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Nadir Chowdhury
2ff24a27b5
Use `asyncio.create_task` over `asyncio.ensure_future`
4 years ago
Logan
3abb2fde56
Fix versionadded not showing in docs for Attachment.content_type
4 years ago
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
4 years ago
Rapptz
54288879e2
Remove userbot functionality
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.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Zomatree
f8d7be5b78
Add content_type to Attachment
4 years ago
Lilly Rose Berner
f60e91d700
Add support for fail_if_not_exists in MessageReference
4 years ago
Edwin
31ee3fafc1
Add remove_markdown helper function
4 years ago
Rapptz
5cb5126548
Make Attachment hashable and castable to str
4 years ago
Nadir Chowdhury
7d345e8e4e
remove trailing whitespace
4 years ago
Nadir Chowdhury
d01500bccd
Fix typo with guild_discovery_grace_period_final_warning
4 years ago
Nadir Chowdhury
6f748e5da5
Add remaining v6 message types
4 years ago
Nadir Chowdhury
427e387a2f
Deprecate non-bot methods
4 years ago
Rapptz
0cd1a88316
Clarify Message.nonce documentation
Fix #2451
4 years ago
Peter Delevoryas
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.
4 years ago
z03h
d752916995
Add MessageReference.jump_url
4 years ago
Anurag Singh
941e1efcb6
PartialMessage.edit returns a full Message
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Misa
5d75a0e7d6
Capitalize Discord in docs of message related attributes
4 years ago
Rapptz
52d587d286
Allow PartialMessage to work with DM channels as well
4 years ago