| Commit message (Collapse) | Author | Lines |
|
|
|
Suggested by Scrags.
Co-authored-by: scragly <[email protected]>
|
|
This channel no longer exists and creeps into error messages
as #deleted-channel.
Fixes: #335
|
|
Order config classes and constants alphabetically (within groups).
Add missing classes to `__all__`, and style it as a vertical list.
This will make it easier to maintain, and allows it to serve
as a summary of the module's contents.
|
|
|
|
The module is full of complicated annotations, and the full `typing`
takes up annoyingly much visual space.
|
|
|
|
See docstring for further details. This serves as a convenience
wrapper around `in_month_command` and `in_month_listener` to allow
a consistent API.
Proposed by lemon.
Co-authored-by: Leon Sandøy <[email protected]>
|
|
Indicate that the decorator shall only be applied to commands.
The `in_month` name will be used for a universal decorator
that can season-lock both listeners and commands.
|
|
The methods will pretend that the selected asset was uploaded
successfully. This allows extensive testing of the branding manager
without API abuse.
|
|
This should be very useful for testing. See docstring.
|
|
The wrapper will no longer wait for the bot to be ready before it calls
the wrapped function for the first time. If the function requires the
bot's cache to be ready, it is responsible for awaiting the method
itself.
This removes the need to acquire a reference to the bot instance inside
the decorator, which seems to be difficult to do cleanly.
As Mark adds, this may in fact be safer as the bot may temporarily
disconnect while the task is active, and awaiting the bot's
ready status every time will prevent issues in such a situation.
Co-authored-by: MarkKoz <[email protected]>
|
|
This is unused and no longer necessary, as all extensions load only
once: on start-up, in `__main__.py`.
|
|
|
|
This allows more flat code as raising will short-circuit,
plus we do not need to build negative response embeds manually.
|
|
|