Commit Graph

95 Commits

Author SHA1 Message Date
44a44e938f Reformat entire project with ruff instead of black 2025-08-18 20:16:10 -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
348c7d7873 Fix audit log automod_rule_trigger_type extra missing 2025-07-30 06:01:28 -04:00
e715ad6419 Add support for automod_quarantined_guild_tag member flag 2025-07-27 13:07:19 -04:00
0e97ef21aa Fix key error on role create or delete 2025-07-22 14:45:02 -04:00
a00510988a Support new role colours in audit log 2025-07-09 13:56:38 -04:00
774b934f74 Add support for guest invites 2025-07-02 18:59:40 -04:00
88d7bd1275 Fix message_pin, message_unpin target id being None
Co-authored-by: Michael H <michael@michaelhall.tech>
Co-authored-by: Alex Nørgaard <Umbra@AbstractUmbra.dev>
2025-02-08 20:47:41 -05:00
a70217a719 Support for Soundboard and VC effects 2024-10-09 17:05:17 -04:00
a5d03d4a1e Add specialcase for AutoMod triggers in audit log diff 2023-10-25 19:28:49 -04:00
933460c3d4 Fix member_profile triggers not having attributes filled 2023-10-20 04:24:55 -04:00
60ff239558 Add support for integration_type in audit logs
Currently unsure whether more processing is meant to be done with this,
but for now an Optional[str] is the best I can do without more data.
2023-08-25 11:57:18 -04:00
34a434b2af Fix AutoMod audit log entry error due to empty channel_id 2023-05-02 20:19:21 -04:00
cb6170a724 Fix AuditLogEntry.target being None for invites
Fix #9336
2023-04-18 06:16:42 -04:00
2247ffd9b5 Convert Webhook targets in AuditlogEntry 2023-04-18 00:36:53 -04:00
ebc1bc3cbb Fix crash from Discord sending null channel_id for automod audit logs 2023-03-28 04:10:59 -04:00
517d7ae4fe Avoid converting target_id if it's None 2023-02-25 06:05:16 -05:00
b19897fce1 Fix AuditLogDiff.type for webhooks 2023-02-21 17:31:01 -05:00
1395d3b495 Fix NameError in audit log target for app commands 2023-02-09 06:14:27 -05:00
39f1f84718 Fix AuditLogDiff.type for integrations 2023-01-22 09:01:15 -05:00
aa981ade1d Add missing AuditLogEntry.guild documentation 2023-01-21 00:04:08 -05:00
68c929cddf Use Mapping instead of Dict for AuditLogEntry inner cache data 2023-01-16 22:03:31 -05:00
0cd24b73f7 Fix trigger missing regex_filter and allow_list in audit log 2023-01-14 07:59:42 -05:00
f950019c75 Fix 2 incorrect types for audit log converters 2023-01-12 23:38:52 -05:00
509a5d771f Fall back to Object for AuditLogEntry.target
Co-authored-by: zephyrkul <zephyrkul@users.noreply.github.com>
2023-01-12 20:27:28 -05:00
d11c42c2e6 Update type hints in AuditLogEntry.user and AuditLogEntry.user_id 2023-01-12 18:21:01 -05:00
2869d8000d Add support for on_audit_log_entry_create event 2023-01-12 18:16:36 -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
c2f9e0be43 Add additional audit log types for automod 2022-08-28 02:08:05 -04:00
1097e1d975 Add mention_spam automod trigger and change default values 2022-08-16 16:58:59 -04:00
afcec46dfd Fix Sticker Objects type being StageInstance 2022-08-09 22:52:30 -04:00
dc81ff76c4 Add Object.type to Objects where a type can be determined 2022-08-09 08:18:58 -04:00
ca1365d7ef Set allow_list for fetched AutoModRules 2022-08-03 20:23:58 -04:00
04aeff660b Add automod types to audit log 2022-07-07 19:30:03 -04:00
3b5cd3b92c Fix audit log for multiple app command permission updates 2022-06-29 22:20:23 -04:00
5426d19dc7 Implement AutoMod 2022-06-27 00:47:52 -04:00
3aa55ba1ed Implement Application Command Permissions models 2022-06-07 01:35:33 -04:00
d16e0cbe61 Add PartialIntegration to TargetType 2022-05-17 03:32:52 -04:00
b7e25645dc Fix audit log bulk message delete not exposing count 2022-05-14 09:36:28 -04:00
619bc50e5d Add application command permissions to audit log 2022-05-01 18:59:57 -04:00
58036ceeb8 Fix attribute error for role overwrite auditlog and add threads 2022-04-30 07:54:01 -04:00
5ffa3e85de Update comments after # type: ignore to be compatible with PEP 484 2022-03-27 22:26:34 -04:00
8993b7f5fe Add cover_image to AuditLogDiff 2022-03-26 08:48:02 -04:00
7a815a97af Fix audit logs for INVITE_CREATE returning None 2022-03-22 18:04:52 -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
4c00b8110c Add audit log event transformer for AuditLogEntry.target 2022-03-08 21:20:23 -05:00
3c6279b947 Implement Guild Scheduled Events 2022-03-01 01:00:04 -05:00
0eb2f32399 Remove VoiceRegion enum and Guild.region attribute
This has been marked deprecated by Discord and it was more or less
usually out of date due to the pace they added them anyway.
2022-02-23 10:03:13 -05:00
ff90e7e747 GUILD_UPDATE audit logs 2022-02-22 08:48:26 -05:00
437d451d4e Fix typing in Audit Logs 2022-02-21 23:32:59 -05:00