Danny
2e2f51fd5c
First pass at supporting user apps
Co-authored-by: red <[email protected] >
Co-authored-by: Vioshim <[email protected] >
12 months ago
Narmy
035dd812de
Add note about renamed options in the Namespace
Co-authored-by: Danny <[email protected] >
3 years ago
Rapptz
0b69148c84
Fix float focused autocomplete options being parsed
According to the Discord docs these aren't validated
3 years ago
Rapptz
c8db766be4
Fix empty strings crashing Namespace for float options
This feels like a Discord bug to me but it's causing issues
3 years ago
Rapptz
573bb32a1e
Fallback to an unavailable guild instead of an Object in interactions
3 years ago
Rapptz
8699d2139a
Improve generic duck type programming with PartialMessageable
This adds jump_url, permissions_for, and created_at. Luckily, most
cases of this type being constructed already have the guild_id at
creation time.
3 years ago
Rapptz
ff24c5229e
Add iterator special method for Namespace
Fix #7812
3 years ago
jack1142
5ffa3e85de
Update comments after `# type: ignore` to be compatible with PEP 484
3 years ago
Rapptz
195c923bec
Fallback to Object if the type is not resolved in namespace
3 years ago
Rapptz
202b993da3
Add Interaction.command and Interaction.namespace attributes
3 years ago
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.
3 years ago
Rapptz
aa74238053
Reorganise documentation for interactions
3 years ago
Rapptz
ae1aaac5a7
Add support for autocomplete
3 years ago
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.
3 years ago
Rapptz
dffd72da58
Add support for context menu commands
3 years ago
Rapptz
0d2db90028
Implement slash commands
3 years ago