Rapptz
d774b4ac7a
Add back tuple __slots__ for AllChannels
2022-05-01 20:10:56 -04:00
Rapptz
ca33824ba2
Change AllChannels.id into a property rather than a slot
2022-05-01 19:41:45 -04:00
z03h
619bc50e5d
Add application command permissions to audit log
2022-05-01 18:59:57 -04:00
Rapptz
3b3d4d3880
Add support for setting and receiving permissions v2
...
Closes #7592
This does not include audit log changes or the remaining endpoints.
That will come in a different commit.
2022-04-28 00:23:36 -04:00
Rapptz
6986733833
Revert "Validate Option names similar to slash command names"
...
This reverts commit 6ef2043b1076f2a5694b44fef785b06e83603aa3.
2022-04-01 06:58:11 -04:00
Rapptz
6ef2043b10
Validate Option names similar to slash command names
2022-04-01 00:09:02 -04:00
jack1142
5ffa3e85de
Update comments after # type: ignore
to be compatible with PEP 484
2022-03-27 22:26:34 -04:00
Rapptz
1192d842e1
Fix some type checker errors and remove some type ignores
...
Caught from an upgraded Pyright
2022-03-16 01:46:58 -04:00
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-03-13 23:52:10 -04:00
Rapptz
bbf7a7981b
Ensure all choices are the same type as the parameter type
...
Fixes #7625
2022-03-11 07:29:11 -05:00
Rapptz
aa74238053
Reorganise documentation for interactions
2022-03-04 21:17:27 -05:00
Rapptz
ae1aaac5a7
Add support for autocomplete
2022-03-01 05:42:44 -05:00
Rapptz
4e04dbdec7
Add support for choice option parameters
...
This implements it in three different ways:
* The first is using typing.Literal for quick and easy ones
* The second is using enum.Enum for slightly more complex ones
* The last is using a Choice type hint with a decorator to pass
a list of choices.
This should hopefully cover most use cases.
2022-03-01 05:42:44 -05:00
Rapptz
0d2db90028
Implement slash commands
2022-03-01 05:35:29 -05:00