Rapptz
ff24c5229e
Add iterator special method for Namespace
...
Fix #7812
2022-03-30 21:45:30 -04:00
jack1142
5ffa3e85de
Update comments after # type: ignore
to be compatible with PEP 484
2022-03-27 22:26:34 -04:00
Rapptz
195c923bec
Fallback to Object if the type is not resolved in namespace
2022-03-19 01:38:16 -04:00
Rapptz
202b993da3
Add Interaction.command and Interaction.namespace attributes
2022-03-17 09:45:21 -04:00
Rapptz
aa006f345a
Add more special methods to Namespace for ease of use.
...
* __getattr__ would allow it to no longer AttributeError while
simultaneously letting linters and type checkers understand that
this is a bag of dynamic attributes.
* __contains__ allows checking for the existence of an attribute
* __getitem__ allows accessing a value even if its name is not a valid
Python identifier.
2022-03-14 22:49:47 -04: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
cdb7b3728e
Fix potential conflicts in snowflake keys
...
This can happen on really old channels with the same ID as the guild ID
and having a command with both a role and a channel.
2022-03-01 05:42:44 -05:00
Rapptz
dffd72da58
Add support for context menu commands
2022-03-01 05:42:44 -05:00
Rapptz
0d2db90028
Implement slash commands
2022-03-01 05:35:29 -05:00