| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
| |
The value 2 represents the `COMPLETED_ONBOARDING` flag, found here
https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
+ used both `discord.User` and `discord.Member` in typehinting as `InteractionResponse.user` returns `discord.User` object
+ removed `ErrorHandler()._can_run`
+ edited `try_get_tag` to use `bot.can_run`
+ removed `/tag list`
+ change `/tag get <name>` to `/tag <name>`
+ remove redundant `GUILD_ID` in `tags.py`
+ using `discord.abc.Messageable` because `ctx.channel` returns that instead of `Channel` Object
|
| | |
| |
| |
| |
| |
| |
| |
| | |
+ Remove commented code
+ Remove unecessarily syncting the bot
+ Handle direct tag commads
+ 3.10 type hinting in concerned functions
+ Add `MockInteractionMessage`
+ Fix tests for `try_get_tag`
|
| |/ |
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |\ |
|
| | | |\ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
the input
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Added new tests for this behaviour, and added pytest-subtests dev dependency
|
| | | | |
| | | |
| | | |
| | | | |
I didn't mean to put them there in the first place
|
| | | | | |
|
| |\ \ \ \
| | |_|/
| |/| | |
|
| | |\ \ \ |
|
| | | |/ /
| | | |
| | | | |
The attribute was removed from Bot in fc05849
|
| | | |\ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|