| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
|
| |
|
|
|
| |
Remove redundant parenthisis around await expressions. Left over from
f25091ef.
|
| |
|
|
|
| |
Use the more explicit (and common) exc instead of e as the variable
holding the exception in except handlers.
|
| |
|
|
|
|
| |
Use bare raise statement when reraising the exception that occured, and
remove unused exception variables. Also remove a pointless exception
handler in discord.opus.
|
| |
|
|
|
|
|
| |
Adds the following:
* `slowmode_delay` for `TextChannel.edit`
* `slowmode_delay` attribute for `TextChannel`
|
| | |
|
| |
|
|
| |
Adjust whitespace to be consistent with the rest of the library.
|
| |
|
|
| |
Left over from various refactoring and rewrites.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Fixes #1104
|
| | |
|
| |
|
|
| |
In case you want to have some external restart loop.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This time with less bugs. It turned out that the crash was due to a
synchronisation issue between the pending reads and the actual shard
polling mechanism.
Essentially the pending reads would be cancelled via a simple bool but
there would still be a pass left and thus we would have a single
pending read left before or after running the polling mechanism and
this would cause a race condition.
Now the pending read mechanism is properly waited for before returning
control back to the caller.
|
| |
|
|
| |
This reverts commit 462191a08b5b2efb83f5bc32935dc546d35a744b.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Should make the category-only edit cases more straightforward since
it does not rely on other guilds in the cache, outside of the category
itself.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Related to: https://github.com/aio-libs/aiohttp/issues/2235
|
| |
|
|
|
|
|
| |
Allows for usage of either `requests` and `aiohttp` when used in
"Standalone" mode.
Fixes #704
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Raise after loop completes without returning with most recent values
for r, data. This is a bit less fragile than checking tries < 4, since
changing the retry count requires changing values in multiple places.
(There seemed to already be handling in the 502 retry, tries <= 5,
which always evaluated to true, e.g.)
Previously, once out of retries, we would always return None without
raising.
This won't NameError so long as we make at least one HTTP request.
|
| |
|
|
|
| |
Discord official client retries on 500, so worst case scenario, we're
not any worse than the official client which seriously outnumbers us.
|
| |
|
|
|
| |
No idea how these will change in the future but this is barebones
enough for now.
|
| | |
|
| |
|
|
|
| |
This would cause unnecessary format calls even if you didn't have
logging enabled.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Most routes now have a 'reason' keyword argument.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This is a breaking change. No longer does Messageable.send have a
filename keyword argument, instead this is all handled through the
discord.File model. To upload many files you must specify a list
of discord.File objects.
|
| |
|
|
|
|
|
| |
There were some dead-locking issues that I suspect were due to the
way the global rate limit was handled. This changes it into a simple
Event that allows multiple coroutines to pass through instead of one
by one.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|