Commit Graph
52 Commits
Author SHA1 Message Date
Steve C bd2231bc99 Fix exception type in docstring for Reaction.clear 2026-07-08 16:08:06 -04:00
7b3f798044 Add support for guild onboarding
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
Co-authored-by: numbermaniac <5206120+numbermaniac@users.noreply.github.com>
Co-authored-by: Andrin <65789180+Puncher1@users.noreply.github.com>
Co-authored-by: Andrin Schaller <65789180+codeofandrin@users.noreply.github.com>
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
2025-08-08 03:10:32 -04:00
Andrin f77ba711ba Add reaction type to raw events and users iterator 2024-05-18 14:33:26 -04:00
Rapptz 97ae6409b0 Add support for burst reactions 2023-09-19 00:06:10 -04:00
Rapptz c5da0fe7c1 Remove and address stale TODO comments 2023-06-11 12:41:04 -04:00
Steve C ce06beeb6c Fix permissions-based docstrings to be more consistent 2022-09-17 14:07:39 -04:00
Rapptz 1a90327202 Fix potential infinite loop in Reaction.users 2022-06-16 18:56:42 -04:00
Kellen 0f18d93e47 Remove unused imports 2022-04-02 04:58:39 -04:00
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
chromacoat dreamkey 095aaa9ad1 Change wording of InvalidArgument removal in docs 2022-03-11 23:25:43 -05:00
Jens Reidel 89009759e0 Fix missing User import in reaction.py
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2022-03-09 08:46:33 -05:00
Rapptz 4c8b1f9abd Remove unused imports 2022-03-05 21:40:42 -05:00
Josh 2b69b5d545 Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -05:00
Josh 3ce00abeae Fix some type-check errors 2022-02-22 03:59:58 -05:00
Rapptz 88b520b5ab Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
2022-02-20 08:04:58 -05:00
Rapptz 015072b7fd Remove wrong import 2022-02-19 22:36:34 -05:00
Kaylynn Morgan 588cda0996 Refactor AsyncIter to use 3.6+ asynchronous generators 2022-02-19 21:58:13 -05:00
jack1142 dc19c6c7d5 Add positional-only arguments in more places 2022-02-19 20:28:01 -05:00
Rapptz f6ea03230e Make parameters passed to Reaction.user keyword-only 2021-06-10 08:58:25 -04:00
Rapptz c251c51cb1 Typehint Reaction 2021-06-10 08:58:10 -04:00
Rapptz 9181bf046b Rename Reaction.custom_emoji to Reaction.is_custom_emoji
This legacy attribute was apparently never changed to be consistent
with the rest of the library
2021-06-10 08:50:50 -04:00
Rapptz 99fc950510 Use f-strings in more places that were missed. 2021-04-08 06:02:47 -04:00
Nadir Chowdhury 89456022cf Add __all__ to remaining modules 2021-04-07 02:30:32 -04:00
Rapptz 9d39b135f4 Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
Nihaal Sangha 69bdc3a184 Change copyright year to present 2021-01-15 05:28:11 -05:00
Rapptz 6071607176 Bump copyright year to 2020
Closes #2510
2020-01-19 20:03:00 -05:00
Rapptz 87f9dcff9c Add support for clearing a specific reaction.
Closes #2440
2020-01-17 19:53:28 -05:00
DevilXD c6539bbc61 Reaction's emoji can be a partial one too 2019-09-19 21:24:47 -04:00
NCPlayz 3c9bcc2851 Improve documentation 2019-06-07 19:27:46 -04:00
NCPlayz fb02191b80 Organise documentation 2019-03-19 08:24:42 -04:00
Myst(MysterialPy) 806295a1be Add remove() to Reaction
Added a coro, `remove()` which takes in a sole parameter, `member`.
This new coro will remove the reaction by the provided member from the reactions message.

`message.remove_reaction(reaction, member)` was not removed as to not introduce breaking changes.
2019-02-14 20:21:09 -05:00
Dante Dam 9656a21ebe Bumped copyright years to 2019. 2019-01-28 22:22:50 -05:00
Hornwitser cd218fa6a7 Remove Reaction.users "Python 3.4 usage" section
Remove nonsensical "Python 3.4" usage section from Reaction.users().
Left behind from f25091ef.
2018-08-28 23:50:52 -04:00
MusicOnline a329565e74 Fix Reaction.users documentation 2018-08-22 21:39:09 -04:00
Rapptz f25091efe1 Drop support for Python 3.4 and make minimum version 3.5.2. 2018-06-10 18:10:00 -04:00
Tobotimus 3112e1c17e Add intersphinx 2018-01-06 17:23:59 -05:00
Rapptz e0f02f1775 Rename AsyncIterator.get to next to prevent shadowing. 2017-07-04 10:45:38 -04:00
Rapptz 649e4de149 Add Reaction.__str__ 2017-06-26 01:27:09 -04:00
Rapptz d239cc2666 Implement "partial" message events.
These are events that get triggered regardless of the state of the
message cache. Useful for getting data from before the bot was booted.
2017-06-09 18:36:59 -04:00
Rapptz f4e01b3a92 Make supported operations stand out more than attributes. 2017-05-20 02:08:34 -04:00
Rapptz f73eb087c9 Use describe instead of tables for supported operations. 2017-05-13 18:48:14 -04:00
Rapptz 1fc08bc5a2 Remove unused imports. 2017-04-18 04:22:35 -04:00
Rapptz 2abdbc70c2 Implement utilities for AsyncIterator.
Closes #473.
2017-02-11 23:34:19 -05:00
Rapptz ff9f5749e1 Update copyright year to 2017. 2017-01-20 23:19:19 -05:00
Rapptz ae6fb54b1b Make Reaction.users return an async iterator. 2017-01-11 21:20:28 -05:00
Rapptz 5e6bfecb07 Move away from StateContext and use ConnectionState directly. 2017-01-03 09:52:10 -05:00
Rapptz d5b616fa11 Rename MessageChannel abc to Messageable. 2017-01-03 09:52:09 -05:00
Rapptz dceba9d962 Add useful repr to all data classes. 2017-01-03 09:52:06 -05:00
Rapptz c187d87dae Re-add support for reactions.
We now store emojis in a global cache and make things like adding
and removing reactions part of the stateful Message class.
2017-01-03 09:51:57 -05:00
Rapptz 44624b7f44 Documentation fixes. 2016-11-17 20:42:06 -05:00