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
Rapptz
186f4968d3
Export to_message_reference_dict to make PartialMessage.reply work
4 years ago
Rapptz
ebf623d9de
Add operations you can do to a Message and PartialMessage to docs
4 years ago
Rapptz
3fe6d261f1
Add PartialMessage to allow working with channel/message_id pairs.
Fix #5905
4 years ago
Rapptz
b00aaab0b2
Revert Message.edit logic that deals with allowed_mentions
It made no sense here.
4 years ago
Lilly Rose Berner
08d632880a
Fix embed suppression when using client-wide allowed_mentions
4 years ago
Nadir Chowdhury
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.
4 years ago
Rapptz
a4cb71b64e
Fix Message.to_reference from the MessageReference changes
4 years ago
Rapptz
5ef30e34e5
Correct docstring missing ]
4 years ago
Rapptz
34f2fb36b1
Added MessageReference.resolved attribute to get replied to message
4 years ago
Rapptz
1014bfcb63
Allow MessageReference to be constructible by users
4 years ago
Rapptz
bd6ab93348
Code cleanup involving enums and message replies
4 years ago
PikalaxALT
d1cb30cccf
Implement discord.Message.reply
4 years ago
Rapptz
f174365d33
Ensure member key is not overwritten by author key in MESSAGE_UPDATE
This also coerces the older message to take the member data from the
newer message so the types are not incompatible.
Fix #5999
4 years ago
Zomatree
344cb96c5d
Add sticker support
4 years ago
PythonCoderAS
a40e20fa38
Use Hashable mixin for Message
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Sebastian Law
37c5c583f2
Add support for message_reference on Message object
5 years ago
Rapptz
a183c4f752
Completely update member references from message inner members.
Fixes #5819
5 years ago
Andres Torres
39aa08ab93
Added __eq__ to Message
5 years ago
ELginas
891531fac0
Fixed a typo in message unpinning docs
5 years ago
Rapptz
ec3c3eb4c6
Update message references in AutoShardedConnectionState
Fixes #5133
5 years ago
Nadir Chowdhury
e971e2f16c
Allow more methods to set an audit log reason
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago
Rapptz
de7c96333c
Update Message.system_content join strings to be up to date.
Fixes #4211
5 years ago
Zomatree
a22d38d004
Add spoiler keyword argument to Attachment.to_file
5 years ago
Rapptz
66c6be50d8
Prepare for the discord.com domain rename
5 years ago
StarrFox
6e8d538f09
add support for allowed_mentions with message edit
5 years ago
Rapptz
1f73e18bc6
Make use_cached keyword only
5 years ago
Josh
c424d82f74
Add versionadded to Attachment.to_file use_cached param
5 years ago