Jun-Ah 준아
0298f81a5c
Add more tests for colour, embeds, files, buttons and modals
6 months ago
Michael H
59f877fcf0
Fix and add test for missing discord.Permission bits
7 months ago
Jun-Ah 준아
97ca618570
Fix incorrect Select max option condition
9 months ago
Rapptz
5c5ccc4e82
[commands] Fix hybrid command wrapped instances being out of sync
2 years ago
Rapptz
69e9bc9454
[commands] Fix nested hybrid groups inserting manual app commands
2 years ago
Rapptz
c8e2644497
Fix custom attributes not being copied over for subclassed Group
2 years ago
Rapptz
9ed5fbecea
[commands] Add support for NumPy style docstrings for commands
3 years ago
Rapptz
1c7747fe9d
Fix nested Annotated calls not resolving
3 years ago
Rapptz
a9025ca3d1
Remove public CommandTree.call method and make it private
3 years ago
Rapptz
57efb5a5a0
Fix failing tests to use new get_parameter function
3 years ago
Rapptz
99d2ecac54
Fix and add tests for new autocomplete regression
3 years ago
StockerMC
89ee05c03f
Add tests by bryanforbes for app commands within cogs
Co-authored-by: Bryan Forbes <[email protected] >
3 years ago
Rapptz
40176bb71b
Fix bound method autocomplete callbacks not working
This also adds some regression tests
3 years ago
Rapptz
f4c5d37c8f
[commands] Rework Cog + Group inheritance to requite GroupCog
This is an attempt to fix the MRO issues present in the current
implementation. The previous implementation of using both Cog and
app_commands.Group in the inheritance chain caused issues with things
such as walk_commands due to it potentially shadowing the app_commands
version of the call.
In this particular case it's better to use composition instead of
inheritance to avoid these bugs entirely. Especially as more things are
added that could conflict with each other.
3 years ago
Rapptz
de941ababe
Add Colour.from_str factory method
This moves the command extension parsing code over to the main library
since it can be potentially useful for others.
3 years ago
Rapptz
e541be0427
Fix tests from failing
3 years ago
Jonah Lawrence
526ed46d7a
Add tests for command descriptions
3 years ago
Rapptz
abeea73734
Fix remaining things not explicitly passing the intents kwarg
3 years ago
Josh
01e2c69b20
Add tests for validating command signature mismatch error handling
3 years ago
Rapptz
25ad5b675c
Ensure explicitly set parents on nested groups are respected
This had a multiple layer bug that needed to be squashed. The first
issue was that setting `parent=...` inside a `Group` wouldn't actually
add the `Group` into the `parent` children mapping. This meant that
it didn't actually end up copying the children when it came time to
within e.g. a Cog.
The second issue was that even if it was added into the children
listing, it wouldn't properly set the attribute.
This commit fixes both of these issues.
Fix #7818
3 years ago
Josh
c11363f037
Rework File.spoiler to synchronise with the filename
Co-authored-by: Danny <[email protected] >
3 years ago
Bryan Forbes
0a8065606a
Update parent reference of Group children
3 years ago
Bryan Forbes
8524bfb54d
Fix caching of UnionType instead of resolved typing.Union
3 years ago
Rapptz
abcec5da9d
[tasks] Use the local timezone when comparing for the start time
Fix #7676
3 years ago
Rapptz
2da6415008
Add more tests for JST regression case
3 years ago
Rapptz
f2586e9fe7
[tasks] Handle imaginary or ambiguous times due to DST transitions
3 years ago
Rapptz
6a43d60acf
[tasks] Refactor tasks to not store a time index state
It's better to recompute it every time rather than suffer from
maintaining the extra state.
3 years ago
Sebastian Law
caa816a636
Add more tests for utils
Co-authored-by: Nadir Chowdhury <[email protected] >
3 years ago
Sebastian Law
3c78b03aa3
Test regressions for the task extension
* tests for testing regression of 19ad64a
* fix edge case for test running within 3 minutes of the start of the hour
3 years ago
Rapptz
bb5ed4947d
Add regression test for optional normalisation
Also runs black on the tests file
3 years ago
Rapptz
3d0c506124
Fix test_resolve_invite due to changed type
3 years ago
Devon R
28c7cdca99
Baseline tests, basically just parts of utils right now
3 years ago