| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Fix #2185
|
| | |
|
| |
|
|
|
|
| |
This includes raw events (which didn't have any) and a few other
types that were missing them. Upon review some more useful fields were
added to the repr output which would be more useful during debugging.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
The reason parameter does not work with webhook deletes or edits so
they're not added. Probably a Discord bug.
|
| |
|
|
| |
Fixes #2093
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rename reverse -> oldest_first, which is more obvious what it does.
Then, honor it entirely - if you specify no `after` endpoint, we default
to the beginning of message history, similar to how `before` defaults to
the end of message history.
This is a breaking change, and will change the behavior of any iterator
that previously would have been returning messages in a weird order for
limits over 100
`for msg in history(reversed=True, limit=300)` would return the newest
300 messages, in a messed up order (100..0, 200..100, 300..200).
`for msg in history(oldest_first=True, limit=300)` will now return the
oldest 300 messages in order. And so on.
`for msg in history(after=msg)` is unchanged, this previously would
return the oldest 100 messages after `msg`, oldest->newest order, and
still will.
|
| |
|
|
|
|
|
|
|
|
|
| |
Most assets now return a new class named `Asset`. This allows for the
assets to be consistently saved via a `save` method instead of special
casing for `Attachment`.
`AppInfo` is no longer a namedtuple it is a fully documented dataclass,
as well as having the state attached to it.
Fixes #1997
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Fixes #1971
|
| | |
|
| |
|
| |
PyCharm was throwing a fit when I set it to None. 😒
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
This adds some implicit permission handling for `discord.VoiceChannel.permissions_for`
This is not documented behavior in discord's developer documentation, but it can easily be verified as correct.
|
| |
|
|
|
| |
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
|
| |
|
|
| |
This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
|
| |
|
|
| |
This will probably be reverted in 1 week.
|
| | |
|
| |
|
|
|
|
|
| |
Adds the following:
* `slowmode_delay` for `TextChannel.edit`
* `slowmode_delay` attribute for `TextChannel`
|
| | |
|
| |
|
|
|
| |
Stay consistent with the rest of the library and use lists for module
__all__ values and tuples for class __slots__ attributes.
|
| |
|
|
| |
Adjust whitespace to be consistent with the rest of the library.
|
| | |
|
| | |
|
| |
|
|
| |
Mostly dealing with permissions, also fixes Raw Events inclusion.
|
| | |
|
| |
|
|
| |
`delete_messages` requires `manage_messages`; the docs in here, nor on RTD reflect this.
Small amendment at line 180, adding three additional.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This adds:
* CategoryChannel, which represents a category
* Guild.by_category() which traverses the channels grouping by category
* Guild.categories to get a list of categories
* abc.GuildChannel.category to get the category a channel belongs to
* sync_permissions keyword argument to abc.GuildChannel.edit to sync
permissions with a pre-existing or new category
* category keyword argument to abc.GuildChannel.edit to move a channel
to a category
|
| |
|
|
|
|
|
| |
Allows for usage of either `requests` and `aiohttp` when used in
"Standalone" mode.
Fixes #704
|
| |
|
|
| |
Fixes #726
|
| |
|
|
|
|
|
|
|
|
|
| |
Apparently this is unsupported.
Affected functions include:
* abc.Messageable.send
* Message.delete
* TextChannel.delete_messages
* TextChannel.purge
|
| |
|
|
|
| |
bulk=False will never use bulk message delete. Useful e.g. for
using the purge interface for deleting the bot's own messages.
|
| |
|
|
|
| |
No idea how these will change in the future but this is barebones
enough for now.
|
| | |
|