* Most slash command support completed, needs some debugging (and reindent)
* Implement a ctx.send helper for slash commands
* Add group command support
* Add Option converter, fix default optional, fix help command
* Add client.setup and move readying commands to that
* Implement _FakeSlashMessage.from_interaction
* Rename normmal_command to message_command
* Add docs for added params
* Add slash_command_guilds to bot and decos
* Fix merge conflict
* Remove name from commands.Option, wasn't used
* Move slash command processing to BotBase.process_slash_commands
* Create slash_only.py
Basic example for slash commands
* Create slash_and_message.py
Basic example for mixed commands
* Fix slash_command and normal_command bools
* Add some basic error handling for registration
* Fixed converter upload errors
* Fix some logic and make an actual example
* Thanks Safety Jim
* docstrings, *args, and error changes
* Add proper literal support
* Add basic documentation on slash commands
* Fix non-slash command interactions
* Fix ctx.reply in slash command context
* Fix typing on Context.reply
* Fix multiple optional argument sorting
* Update ctx.message docs to mention error instead of warning
* Move slash command creation to BotBase
* Fix code style issues with Black
* Rearrange some stuff and add flag support
* Change some errors and fix interaction.channel fixing
* Fix slash command quoting for *args
Co-authored-by: iDutchy <42503862+iDutchy@users.noreply.github.com>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* Typehint gateway.py
* Add relevant typehints to gateway.py to voice_client.py
* Change EventListener to subclass NamedTuple
* Add return type for DiscordWebSocket.wait_for
* Correct deque typehint
* Remove unnecessary typehints for literals
* Use type aliases
* Merge branch '2.0' into pr7422
* Add try_user to get a user from cache or from the gateway.
* Extract populate_owners into a new coroutine.
* Add a try_owners coroutine to get a list of owners of the bot.
* Fix coding-style.
* Fix a bug where None would be returned in try_owners if the cache was…
* Fix docstring
* Add spacing in the code
* Add try_member to guild.
This also fix an omission in the fetch_member docs. fetch_member raises NotFound if the given user isn't in the guild.
* Optimize imports.
* add back the silent kwarg to message.delete
* forgot about versionadded
* shorten the if statement
* simplify raising a bit ig?
* should be versionchanged instead
Co-authored-by: Arthur <site-github@api-d.com>
* remove `Optional` from parameter and doc string
Co-authored-by: Arthur <site-github@api-d.com>
When the new permission for send_messages_in_threads was added, we added
the wrong bit. Instead of adding the bit as the most significant (37),
we added it as the last significant, which invalidated most of the
permissions defined by this method.
Since apparently closing stdin and later calling communicate() is no bueno,
we're just going to rearrange the process finalization code so both cleanup()
and the pipe loop exit conditions point to it.