| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The previous type hint expected a tuple with a single exception type
instead of a variable length tuple of exception types
|
|
|
|
|
|
|
| |
aiodns is required by aiohttp when using an AsyncResolver, as is done in
BotBase. This makes aiodns a required dependency.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | | |
On view timeout, this message has it's view removed if set.
Co-authored-by: Boris Muratov <[email protected]>
|
| | |
| | |
| | |
| | | |
method.
|
| | |
| | |
| | |
| | |
| | |
| | | |
The view implements an interaction check for allowed_users and allowed_roles.
The button deleted the message attached the the parent view on click.
|
| | | |
|
|/ / |
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Switches out the Hashable type from the typing library for the generic
from collections.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Replaces all typing generics with collection equivalents as per PEP 585.
`typing.Callable` was not included in this due to a sphinx-autodoc bug
not handling it well.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
The `maybe_raise_for_status` function is declared as a class function,
but does not need to be so.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
The function was missing the self arg, which would lead to an exception
at startup for any projects that don't override it. It's also not being
awaited despite being an async function.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Replaces the access to `discord.utils._MissingSentinel` with a simple
boolean flag. This has the benefit of behaving more nicely with our
doc generation.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Before this, even if a package is prefixed with an underscore, `walk_extensions` will ignore the package itself, but will still look for extensions inside it.
|
| |
|
|
|
|
| |
This is for bots that want to use the unqualify function for their own extension cogs
|
| |
|
| |
|
|
|
|
| |
This is in case a connection cannot be made on init.
|
|
|
|
| |
This is to avoid a deprecation notice.
|
|
|
|
| |
There is a deprecation notice that this must be created within an async function. This isn't a breaking change.
|
|
|
| |
Co-authored-by: Mark <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Doing a naive git log --grep closing_tasks on the bot repo I found these two places it was used:
https://github.com/python-discord/bot/commit/429cc865309242f0cf37147f9c3f05036972eb8c - Reddit cog to revoke the access token on unload, which has since been moved to lance (without this feature).
https://github.com/python-discord/bot/commit/f4004d814c1babfb5906afb8cd9944ceef90a2a3 - Silence cog, which has been removed since.
Since this list of tasks to close when closing the Discord connection is no longer used, it has been removed from BotBase.
|
| |
|
| |
|
| |
|
|
|
|
| |
This allows commands like extensions and source to see all of the available commands, rather than just the currently loaded commands.
|
|
|
|
|
|
| |
Since *args and **kwargs already allow these to be passed, there is no use in explicitly listing them.
allowed_roles has been left there, to ensure that it is always passed, since it's important to use this to avoid bots being able to ping large roles.
|
|
|
|
|
|
|
| |
This commit also modifies the extensions util, since it's now directly used by bot-core.
Co-authored-by: Mark <[email protected]>
Co-authored-by: Hassan Abouelela <[email protected]>
|