183675be74
Add support for silent messages
2023-02-08 15:40:33 -05:00
c46f309c13
Add support for member flags
2023-01-25 11:12:31 -05:00
2869d8000d
Add support for on_audit_log_entry_create event
2023-01-12 18:16:36 -05:00
3d24f0fb12
Add support for role subscription reading
2023-01-10 18:05:00 -05:00
dad666651f
Add ApplicationFlags.active
2022-11-10 23:46:43 -05:00
3d39f70d30
Add active developer flag
2022-11-10 13:58:31 -05:00
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
747091d4a2
Add __bool__ for flags
2022-08-10 22:49:49 -04:00
6c42065210
Fix various a -> an typos across the library
...
Closes #8301 , #8287
2022-08-04 08:17:07 -04:00
dc50736bfc
Add ApplicationFlags.app_commands_badge
2022-07-21 15:00:40 -04:00
b88bdaf4c0
Add Intents.auto_moderation
2022-07-06 05:56:58 -04:00
53a111872e
Fix ArrayFlags._from_value not having an initial value
2022-07-01 20:10:42 -04:00
5426d19dc7
Implement AutoMod
2022-06-27 00:47:52 -04:00
78a026aae2
Add remaining bitwise operators to Flags
2022-05-23 21:58:46 -04:00
46e6a2708f
Add dunder or support to Flag types
2022-05-17 14:12:45 -04:00
ef20264b1c
Allow creating an Intent through a passed integer value
2022-04-29 10:50:22 -04:00
92eb9d7d8e
Fix documentation for ChannelFlags.pinned
2022-04-06 23:06:58 -04:00
23f6876492
Add initial support for forum channels
...
Closes #7652
2022-04-06 23:02:58 -04:00
deb7958797
Add new on_thread_create event
2022-04-04 07:22:21 -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
147948af9b
Use typing.Self throughout library
2022-03-01 07:53:24 -05:00
3c6279b947
Implement Guild Scheduled Events
2022-03-01 01:00:04 -05:00
60b69e5d57
Add missing message flags
2022-02-27 05:09:04 -05:00
3ce00abeae
Fix some type-check errors
2022-02-22 03:59:58 -05:00
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
19b10eecfe
Add message content to the Intents.default docstring
2022-02-19 00:15:23 -05:00
de78a1071f
Add message content intent application flags
2022-02-18 21:20:00 -05:00
37f96e3473
Add message_content intent and move to api v10
2022-02-18 08:44:46 -05:00
bae0cdf2a7
Add SPAMMER user flag
2022-02-17 22:14:21 -05:00
820bde99e1
Add BOT_HTTP_INTERACTIONS user flag
...
Adds UserFlags.bot_http_interactions and PublicUserFlags.bot_http_interactions
See: discord/discord-api-docs#3903
2022-02-17 11:26:09 -05:00
423fd1bc26
Add SystemChannelFlags.join_notification_replies
...
Add SUPPRESS_JOIN_NOTIFICATION_REPLIES system channel flag
See: discord/discord-api-docs#3977
2022-02-17 11:19:32 -05:00
f586f4dfbd
Clarify connect() requires Intents.voice_states
2021-08-24 00:02:21 -04:00
79bae47992
flag_value should not be a generic class
...
Since there is no generic information in `flag_value.__init__()`,
`flag_value` descriptors get stored as `flag_value[<nothing>]` in mypy
strict mode and then the `__get__` overloads never match. This leads to
errors when using things like `permissions_instance.embed_links` since
`<nothing>` never matches `Permissions`.
The generic inheritance isn't needed at all since the type information
we care about comes from the call site of `__get__` and not the
instantiation of the descriptor.
2021-08-18 01:05:08 -04:00
6beef898c6
Rename instances of nitro to premium
2021-07-30 23:10:36 -04:00
60d82cf908
implement guild stickers
2021-07-30 21:25:41 -04:00
262a50196d
fix typo in ephemeral function definition
2021-07-21 02:46:39 -04:00
717e723a36
Update intents docs to reflect presence update changes
2021-07-07 20:16:17 -04:00
17268c3368
Add MessageFlags.ephemeral
2021-07-03 21:29:28 -04:00
be5603141e
Remove slots from flags
...
Fix #7159
2021-07-03 10:52:35 -04:00
88620d052a
Typehint permissions
2021-07-03 08:30:27 -04:00
68c7c538f5
First pass at preliminary thread support
...
This is missing a lot of functionality right now, such as two gateway
events and all the HTTP CRUD endpoints.
2021-06-08 07:23:40 -04:00
ab6d592f8c
Add support for integration create/update/delete events
2021-06-07 03:28:26 -04:00
65439732b3
Add Discord Certified Moderator user flag
2021-05-23 05:07:33 -04:00
1d4e339141
Add get_user to the things intents.members affects
2021-05-03 22:15:28 -04:00
631a0b1e13
Add support for ApplicationFlags
2021-04-18 20:32:52 -04:00
9eaf1e85e4
Rewrite Asset design
...
This is a breaking change.
This does the following transformations, assuming `asset` represents
an asset type.
Object.is_asset_animated() => Object.asset.is_animated()
Object.asset => Object.asset.key
Object.asset_url => Object.asset_url
Object.asset_url_as => Object.asset.replace(...)
Since the asset type now requires a key (or hash, if you will),
Emoji had to be flattened similar to how Attachment was done since
these assets are keyed solely ID.
Emoji.url (Asset) => Emoji.url (str)
Emoji.url_as => removed
Emoji.url.read => Emoji.read
Emoji.url.save => Emoji.save
This transformation was also done to PartialEmoji.
2021-04-16 11:27:23 -04:00
d21e65ce47
Add SystemChannelFlags.guild_reminder_notifications
2021-04-15 08:03:56 -04:00
f1fac96e33
Remove private_channel_(delete/create)
events
2021-04-11 15:13:23 -04:00
7afcacc9a1
Remove MemberCacheFlags.online
...
v8 no longer gives enough data for this to be possible
2021-04-11 00:39:13 -04:00
83fe98c20d
Add typing for flags
2021-04-07 07:55:55 -04:00