| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
This is mostly a copy-paste of the implementations in the old system into the new system's structure.
The mentions rule required changing the `triggers_on` method to async.
|
|\ |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is need due to the new behaviour of discord.utils.get supporting both iterables and async iterables by checking for the presence of the __aiter__ attr on the iterable.
GuildChannelConverter._resolve_channel uses this get util under the hood which grabs the voice channels on the guild, which were previously Mocked by the MagicMock, meaning the __aiter__ attr was present, causing the util to think it should be ran asynchronously.
|
| | |
| | |
| | |
| | | |
Added new tests for this behaviour, and added pytest-subtests dev dependency
|
| | |
| | |
| | |
| | | |
I didn't mean to put them there in the first place
|
| | | |
|
| |\ \ |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a purely aesthetic choice.
Additionally fixes a small bug where a missing entry type would repeatedly invoke a warning on cog load.
|
|\ \ \ \
| | |_|/
| |/| | |
|
| |\ \ \ |
|
| | |\ \ \
| | | | |/
| | | |/| |
|
| | | |\ \ |
|
| | | | | |
| | | | | |
| | | | | | |
The attribute was removed from Bot in fc05849
|
| | | | |/
| | | |/| |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
the input
|
| | |_|/
| |/| | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Co-authored-by: Izan <[email protected]>
Co-authored-by: TizzySaurus <[email protected]>
Co-authored-by: Xithrius <[email protected]>
|
| | |\| | |
|
| | | | | |
|
| | |\ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Use the more concise DATETIME timestamp instead of both a DATE and a TIME timestamp.
- Remove underline from the "Reported ..." section at the bottom of the embed.
- Re-add time of action/rejection timestamp to footer of embed.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Corrected test case to use `datetime.utcnow()` to be consistent with target
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Used new method of dict subset comparison instead of datetime patching for better compat. with argument types
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Corrected datetime patching
|
| | | | | | |
|
| | | | | | |
|
| | |_|/ /
| |/| | |
| | | | |
| | | | | |
- Refactored tests for new time duration arguments
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Calling the cog_load from within the setUp function resulted in interaction with a RedisSession before it was initialised.
This wasn't noticed in CI as it only error under certain concurrency timings due to xdist.
To resolve this, we moved the setup and async setup logic to a base class.
Co-authored-by: Hassan Abouelela <[email protected]>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This helper ensures that a fresh RedisSession is given to each test case that inherits from it.
|
| | | |
| | | |
| | | |
| | | | |
pep-naming now supports these functions being in camel case.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This has been abstracted away, the correct way to do this now is to directly access the client.
|
| | | |
| | | |
| | | |
| | | | |
These warnings were caused by the setup coro from error_handler.py being imported directly, causing a warning about an un-awaited coro whenever the Cog was accessed from the same file.
|
| | |/
| |/|
| | |
| | | |
get_event_loop is deprecated as of 3.10 if there is no running loop.
|