Commit Graph

730 Commits

Author SHA1 Message Date
eca1d9a470 Sort events by categories (#88) 2021-10-07 16:48:38 +01:00
0bbcfd7f33 Update resource links (#65)
* Updated links

* Remove github discussions from getting help
2021-10-06 20:32:48 +01:00
3260ec6643 Add improved docs for slash commands (#77)
* Fix command checks actually working

* Current progress on slash command docs

* Improve docs for slash commands further
2021-09-27 01:14:07 -07:00
00ae8bb18c Fix all invites to devision server invite (#69) 2021-09-20 21:25:48 +02:00
0638bda719 Fix docs invite
Invite link on docs was still set to dpy, this changes it to edpy
2021-09-19 02:42:43 +02:00
1957fa6011 Implement a least breaking approach to slash commands (#39)
* 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>
2021-09-19 01:28:11 +02:00
75a23351c4 Revert #42 (#61) 2021-09-09 00:02:02 +02:00
7513c2138f Fix code style issues with Black 2021-09-05 21:34:20 +00:00
47e42d1648 Merge pull request #42
* implement WelcomeScreen

* copy over the kwargs issue.

* readable variable names

* modernise code

* modernise pt2

* Update discord/welcome_screen.py

* make pylance not cry from my onions

* type http.py

* remove extraneous import
2021-09-02 13:40:11 -07:00
4055bafaa5 Merge pull request #47
* Added `on_raw_typing` event
2021-09-02 13:34:39 -07:00
de0e8ef108 V2.0 changelog (#8)
* Copy in messages from Danny, verbatim

* Type whats_new

* Add my changes to the changelog

* Fix a typo
2021-08-29 10:55:49 -07:00
96ac8c1a4f remove JA docs / README.ja.rst 2021-08-28 11:23:10 -07:00
b12fe223b2 Fix description of Data Classes section in api.rst 2021-08-27 18:13:55 -04:00
516675dd2e Fix a typo in member_role_update 2021-08-27 02:05:44 -04:00
78598d59d7 Change on_socket_raw_receive to dispatch right before JSON conversion 2021-08-25 01:26:37 -04:00
ef79305961 Exclude private functions from VoiceClient 2021-08-24 22:49:46 -04:00
835432d161 Allow enums to be compared 2021-08-24 02:28:39 -04:00
f4d5fcc8f9 Add Thread to the return type of Client.get_channel
Also explains some type ignores.
2021-08-19 20:18:27 -04:00
6b6bcb92e6 Fix missing or broken versionadded in docstrings
This also documents BadFlagArgument.flag
2021-08-18 00:45:02 -04:00
feae059c68 Remove coverage note from the documentation and README
A lot of people seem to point out this line as a gotcha when certain
features haven't been released yet. It's been more of a pain-point
than a marketing win since people seem to be unaware of the way this
project is developed.

Fix #7401
2021-08-15 14:01:59 -04:00
1279510194 Add support for PartialMessageable instances
This allows library users to send messages to channels without fetching
it first.
2021-08-10 09:24:49 -04:00
1418464813 [docs] Fix typo 2021-08-10 08:35:31 -04:00
1c63816cc0 [commands] Document / type-hint cooldown 2021-08-10 08:35:15 -04:00
ec32b71ff9 [commands] Document GuildNotFound 2021-08-10 08:34:11 -04:00
c628224403 [commands] Add GuildStickerConverter 2021-08-10 08:31:20 -04:00
b640493300 Add enable_debug_events parameter to enable expensive debug events
This should allow less dispatching during heavy gateway event streams.
2021-07-31 20:35:28 -04:00
e2250d402e Add on_socket_event_type event 2021-07-31 20:12:40 -04:00
13a47dfe6e Fix docs for stickers 2021-07-31 19:40:41 -04:00
3ad95f3746 [commands] Document dynamic_cooldown 2021-07-30 21:29:40 -04:00
60d82cf908 implement guild stickers 2021-07-30 21:25:41 -04:00
154c90ef59 Add audit log events for threads 2021-07-28 19:57:42 -04:00
1472e9ed7c Fixes minor grammatical error in Command.update 2021-07-28 19:56:36 -04:00
980d6abbea Fix typo in commands documentation 2021-07-21 02:52:33 -04:00
07483297ad Fix typo in UserFlags.has_unread_urgent_messages 2021-07-21 02:47:36 -04:00
3cb539d91b [commands] Document the thread converter 2021-07-07 20:15:18 -04:00
c1c6457598 Separate member_update and presence_update events 2021-07-04 21:40:30 -04:00
828e47d83f Document on_thread_join also applying to thread creation 2021-07-04 04:55:12 -04:00
23a69144b6 Add a warning in on_interaction 2021-07-04 03:06:36 -04:00
0b577fa209 Add support for fetching the original interaction response message 2021-07-03 11:00:48 -04:00
7ca90874b9 Raise an exception if an interaction has been responded before
Fix #7153
2021-07-03 00:30:32 -04:00
ffa0b26b82 Fix versionadded on ChannelType.private_thread 2021-07-02 22:05:27 -04:00
4f0e907e44 Add ButtonStyle.url alias for ButtonStyle.link 2021-07-01 20:42:56 -04:00
12e3eba011 Add Select to the docs 2021-06-30 03:54:30 -04:00
e3a66bcccc Fix property CSS to be more inline with everything else 2021-06-28 04:16:51 -04:00
039bb9f871 Move documentation CSS after CSS block 2021-06-28 03:44:22 -04:00
d1a2ee4620 Add discord.utils.format_dt helper function 2021-06-28 01:31:14 -04:00
f7b0ed7b12 Add ButtonStyle.gray alias 2021-06-28 00:01:13 -04:00
233d10649c [docs] Update Sphinx and Fix various references
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-06-27 23:43:49 -04:00
b2c9c26841 Show decorator usage instead of signature in docs 2021-06-27 23:40:39 -04:00
d30fea5b0d Add changelog for v1.7.3 2021-06-12 12:28:08 -04:00