| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | | | | |
| | | | |
| | | | |
| | | | | |
awaiting command.
|
| | | | | | |
|
| | | | |\ \
| | |_|/ /
| |/| | | |
merge back new changes
|
| | |\ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's obsolete code because the cog has been removed.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Last few aliases are an anomaly since #1124 was merged. The remaining
aliases are seldom used. The code isn't exactly clean and it has some
maintenance costs.
Resolves #1159
|
| | |\ \ \ \ \
| | | | | | |
| | | | | | | |
Duck pond: ignore reactions in DMs
|
| | | | | | | | |
|
| | | |/ / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also handle the channel not being found, which may be due to a cache
issue or because it got deleted.
Fixes #1183
Fixes BOT-8T
|
| | |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
python-discord/bug/backend/1181/wait-for-deletion-404
Catch 404 in wait_for_deletion when reacting
|
| | | |\ \ \ \ \
| | |/ / / / /
| |/| | | | | |
|
| | |\ \ \ \ \ \
| | |_|/ / / /
| |/| | | | | |
Remove null chars before posting deleted messages
|
| | |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Our API doesn't allow null characters in the content field. It may be
present because of a self bot that is able to send such character.
Fixes #1182
Fixes BOT-8E
|
| | |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The message may be deleted before the bot gets a chance to react.
Fixes #1181
|
| | | |/ /
| |/| | |
|
| | |\ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This shouldn't be a warning, as we cannot do anything about it.
Fixes BOT-8X
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now, when we send a DM and it fails:
* Ignore if due to disabled DMs
* Log exception otherwise
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Note that we were previously only catching 403. As the docstring
explains, we will now catch any Discord exception and only look
at the the code, rather than the status.
|
| | |\| | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This also bumps minor versions of several other packages. I've spun up
the bot and played around with it, and run all unit tests. Everything
still seems to be in order.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This rewords the welcome DM, and adds the new Welcome
To Python Discord video to it.
|
| | | |\ \ \ |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
The comment doesn't contribute anything.
|
| | | | |\ \ \ |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The ternary is a bit confusing.
Co-authored-by: Numerlor <[email protected]>
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The confirmation was intended to be a safe guard against cache issues
that would cause a huge number of roles/users to deleted after syncing.
With `wait_until_guild_available`, such cache issue shouldn't arise.
Therefore, this feature is obsolete.
Resolve #1075
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Closes #1173
|
| | |/ / / / / |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |\
| | | |_|_|/
| | |/| | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`LockGuard` was lonely and the decorators were cluttering up
decorators.py.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
A mutex is the same thing as a lock. The former is a relatively esoteric
contraction, so the latter is preferred.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
It was not being used anywhere.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Concerns were raised over possible race conditions due `asyncio.Lock`
internally awaiting coroutines. Does a mere `await` suspend the current
coroutine, or does it have to actually await something asynchronous,
like a future?
Avoid answering that question by doing away with the awaits, which
aren't necessary but are there as a consequence of using `asyncio.Lock`.
Instead, add a custom `LockGuard` object to replace the previous locks.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Clarify the significance of the argument being passed.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The annotation was previously changed on the basis of an incorrect
return annotation PyCharm inferred for `check()`.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The exception it raises reads better if the singular form of the word
is used.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Silent failure is confusing to users. Showing an error message clears up
why nothing happened with their command.
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The exception will facilitate user feedback for commands which use the
decorator.
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Instead of taking a callable, this wrapper just takes a name or position
to get the resource ID.
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Explicit is better than implicit, and this default value wasn't much of
a convenience.
|