Commit Graph

100 Commits

Author SHA1 Message Date
Rapptz
44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -04:00
Soheab
983a9b8f94 Use Unpack where it's possible 2025-08-15 05:36:36 -04:00
DA344
50caa3c82c Add support for components V2
Co-authored-by: Michael H <michael@michaelhall.tech>
Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com>
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Jay3332 <40323796+jay3332@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-08-13 20:37:23 -04:00
Sacul
e715ad6419 Add support for automod_quarantined_guild_tag member flag 2025-07-27 13:07:19 -04:00
Sacul
5f4a822c2e Add missing fill_with_flags decorator to InviteFlags class 2025-07-27 13:06:12 -04:00
Soheab
774b934f74 Add support for guest invites 2025-07-02 18:59:40 -04:00
DA344
8a95c0190c Add support for embed flags and update attachment flags
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2025-02-12 05:42:17 -05:00
Steve C
c8ecbd8d10 Add Message.forward flag 2024-10-22 12:01:34 -04:00
Andrin
a70217a719 Support for Soundboard and VC effects 2024-10-09 17:05:17 -04:00
Rapptz
dee5bf65c6 Update MemberFlags to have newest values 2024-08-29 16:15:14 -04:00
DA344
e43bd8692c Add support for Polls
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com>
Co-authored-by: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com>
2024-05-10 06:14:12 -04:00
Danny
2e2f51fd5c First pass at supporting user apps
Co-authored-by: red <red@kalab.sk>
Co-authored-by: Vioshim <63890837+Vioshim@users.noreply.github.com>
2024-05-04 23:25:01 -04:00
Lucas Hardt
99618c823a Add support for premium app integrations
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
Co-authored-by: Lucas Hardt <lucas.hardt@fu-berlin.de>
Co-authored-by: Andrin S. <65789180+Puncher1@users.noreply.github.com>
2023-10-19 07:27:29 -04:00
Server Bot
2e2f20c6d5 Fix Intents.auto_moderation flag to alias_flag_value 2023-08-11 16:45:53 -04:00
Rapptz
e6a0dc5bc0 Add support for media channels 2023-08-01 18:18:33 -04:00
Soheab_
135e57c81f Add support for role flags 2023-07-18 05:44:03 -04:00
Soheab_
14faa9bdab Add support for attachment flags 2023-07-14 21:41:44 -04:00
Josh
630b2a1e55 Update pyright version 2023-07-01 18:26:27 -04:00
Aluerie ❤#6524
33243f9bd6 Fix Intents.emoji and emojis_and_stickers swapped alias decorators 2023-06-27 19:01:56 -04:00
Rapptz
df01db3490 Initial support for pomelo migration 2023-05-19 20:59:19 -04:00
Jakub Kuczys
ca0b444047 Document the change in behaviour of bool(flag_obj) 2023-05-13 14:13:55 -04:00
Andrin S
c6162cfec5 Update auto_mod_badge documentation 2023-04-21 20:28:07 -04:00
Andrin S
1767be0081 Add support for voice messages
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-04-20 00:08:04 -04:00
Andrin S
4615d6848a Add auto_mod_badge to ApplicationFlags 2023-04-18 08:55:18 -04:00
Michael H
8991525215 Improve handling of ArrayFlags
Why discord did it this way instead of as an integer bitfield like everything
reasonable is unknowable, but this does less work to get to the same result.

Add comment detailing what many would find unreadbale
2023-04-18 04:03:40 -04:00
Rapptz
183675be74 Add support for silent messages 2023-02-08 15:40:33 -05:00
Soheab_
c46f309c13 Add support for member flags 2023-01-25 11:12:31 -05:00
Rapptz
2869d8000d Add support for on_audit_log_entry_create event 2023-01-12 18:16:36 -05:00
Rapptz
3d24f0fb12 Add support for role subscription reading 2023-01-10 18:05:00 -05:00
Rapptz
dad666651f Add ApplicationFlags.active 2022-11-10 23:46:43 -05:00
Rapptz
3d39f70d30 Add active developer flag 2022-11-10 13:58:31 -05:00
Rapptz
ab265dcb7c Add support for newest ForumChannel changes
This adds the following:

- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
2022-08-31 11:09:56 -04:00
Rapptz
747091d4a2 Add __bool__ for flags 2022-08-10 22:49:49 -04:00
Rapptz
6c42065210 Fix various a -> an typos across the library
Closes #8301, #8287
2022-08-04 08:17:07 -04:00
Rapptz
dc50736bfc Add ApplicationFlags.app_commands_badge 2022-07-21 15:00:40 -04:00
I. Ahmad
b88bdaf4c0 Add Intents.auto_moderation 2022-07-06 05:56:58 -04:00
Rapptz
53a111872e Fix ArrayFlags._from_value not having an initial value 2022-07-01 20:10:42 -04:00
Alex Nørgaard
5426d19dc7 Implement AutoMod 2022-06-27 00:47:52 -04:00
zephyrkul
78a026aae2 Add remaining bitwise operators to Flags 2022-05-23 21:58:46 -04:00
Josh
46e6a2708f Add dunder or support to Flag types 2022-05-17 14:12:45 -04:00
Rapptz
ef20264b1c Allow creating an Intent through a passed integer value 2022-04-29 10:50:22 -04:00
Rapptz
92eb9d7d8e Fix documentation for ChannelFlags.pinned 2022-04-06 23:06:58 -04:00
Rapptz
23f6876492 Add initial support for forum channels
Closes #7652
2022-04-06 23:02:58 -04:00
Josh
deb7958797 Add new on_thread_create event 2022-04-04 07:22:21 -04:00
Stocker
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
Josh
147948af9b Use typing.Self throughout library 2022-03-01 07:53:24 -05:00
Nadir Chowdhury
3c6279b947 Implement Guild Scheduled Events 2022-03-01 01:00:04 -05:00
Nadir Chowdhury
60b69e5d57 Add missing message flags 2022-02-27 05:09:04 -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