dolfies
a777327d8e
Implement Commands backend v2
3 years ago
dolfies
5f1ab56174
Docs are fun 😡
3 years ago
dolfies
9fe7cfb474
Docs are fun :(
3 years ago
dolfies
8fcca3183a
Rebase to latest upstream
3 years ago
dolfies
50ff16ede6
Rebase to latest upstream
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
5edcd7d64b
Implement Emoji/Sticker.fetch_guild (and run black)
3 years ago
dolfies
957a484306
Run black
3 years ago
Stocker
5fa32540a4
Change Message to subclass PartialMessage
3 years ago
BeatButton
7389707847
Only send allowed_mentions if content changed
3 years ago
z03h
5d6905a1bc
Update clean_content/channel_mentions for threads
3 years ago
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable
3 years ago
Rapptz
1fba54ce97
Reword DeletedMessageReference docstring to be clearer
3 years ago
ChesterWOV
ca4db68686
Fix grammar issue for Message.add_reaction docs
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
3 years ago
Eric Schneider
ef92170a9d
Fix Message.edit ignoring suppress kwarg
3 years ago
Stocker
e15415413b
Add missing parameters to certain methods
- slowmode_delay and reason in Message.create_thread
- slowmode_delay in TextChannel.create_thread
- reason in Guild.edit_widget
3 years ago
Stocker
12d4de52a8
Add Attachment.ephemeral
3 years ago
m-etroo
e3de172ba9
Fix incorrect wording in Message.edit docstring
'role' -> 'message'
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Rapptz
8d52ddaff6
Fix remaining type errors in main package
This doesn't fix the type errors in the ext packages though.
3 years ago
Nadir Chowdhury
3cf000d467
Type up gateway payloads
3 years ago
Rapptz
f2600995e8
Fix NameError due to missing import
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
jack1142
686f233954
Add missing information about in-place edits in Message.edit
3 years ago
Josh
dede5539ee
Add support for editing message attachments
3 years ago
jack1142
dc19c6c7d5
Add positional-only arguments in more places
3 years ago
Alex Nørgaard
2e5da07180
Fix unknown DMChannel in MessageReference.resolved.channel
Threads would cause the message reference to resolve to a DMChannel
3 years ago
Josh
ce01033e06
Allow PartialMessage.channel to be a PartialMessageable
3 years ago
Rapptz
770a5fee9c
Remove PartialMessage.edit duplicated code
Now that Message.edit returns the message this duplication is no longer
needed.
3 years ago
Rapptz
9c066a8cf6
Refactor internal message sending and editing parameter passing
This reduces some repetition in many functions and is ripped out of
the webhook code. This also removes the unused HTTP functions for
interaction responses since those belong in the webhook code rather
than the HTTPClient.
3 years ago
Josh
08bee0eeb6
Add support for file/attachment descriptions
3 years ago
dolfies
16ad1a176c
Remove embeds :(
3 years ago
dolfies
da57fd0e68
Add Object to permission overwrites, channel jump urls, command iterators
3 years ago
dolfies
397bca6b14
Improve interaction object, implement message.interaction, implement Attachment.description
3 years ago
dolfies
d20b444bfb
Preliminary thread support
3 years ago
dolfies
6b0b510818
Handle interaction events
4 years ago
dolfies
e168fd38a0
Implement button clicking
4 years ago
dolfies
7b11d8c256
Get it starting
4 years ago
dolfies
6645f87d33
Remove bot-only stuff from message.py
4 years ago
James Gayfer
4aafa39e8c
Update thread permissions
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
4 years ago
Rapptz
8306b9f6af
Add type hint for suppress parameter
4 years ago
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
Fixes #4098
4 years ago
Rapptz
8bbb8f6db9
Use getattr for default_auto_archive_duration in Message.create_thread
Some channel types do not have this attribute so a fallback is
necessary to prevent the attribute access from erroring.
4 years ago
Stocker
d8b06ca7f2
Fix message.py typehints
4 years ago
James Gayfer
489e5f3288
Use channel default auto archive duration
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.
4 years ago
Rapptz
3b4c6269be
Fix documentation for Message.is_system
Also fixes some formatting
4 years ago
AkshuAgarwal
6b6bcb92e6
Fix missing or broken versionadded in docstrings
This also documents BadFlagArgument.flag
4 years ago