Commit Graph

300 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
Lilly Rose Berner
9dc8e2712a Add ForumChannel.members property 2025-01-15 18:22:28 -05:00
Soheab
7f95357041 Add mention property to PartialMessageable 2024-12-01 16:10:19 -05:00
Steve C
af75985730 Fix incorrect import 2024-10-30 20:56:37 -04:00
Soheab
354ae4208c Fix abc.GuildChannel.clone implementations 2024-10-16 18:49:41 -04:00
Andrin
a5f9350ff2 Add category parameter to abc.GuildChannel.clone 2024-10-10 05:22:52 -04:00
Soheab
053f29c96c Update all channel clone implementations 2024-10-09 17:27:02 -04:00
Andrin
a70217a719 Support for Soundboard and VC effects 2024-10-09 17:05:17 -04:00
lmaotrigine
2f479b2ac6 Document bitrate kwarg in StageChannel.edit 2024-05-15 13:37:40 -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
Andrin
9ce733321b Add support for setting voice channel status 2023-12-26 05:32:21 -05:00
Soheab_
ebe2661f7d Add missing scheduled_event field to StageChannel.create_instance 2023-10-01 13:41:07 -04:00
Rapptz
e6a0dc5bc0 Add support for media channels 2023-08-01 18:18:33 -04:00
Rapptz
b7785d29cb Add CategoryChannel.forums shortcut property 2023-07-15 19:53:43 -04:00
Josh
630b2a1e55 Update pyright version 2023-07-01 18:26:27 -04:00
Andrin S
53ce05b0d0 Add Interaction.channel from Discord payload
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2023-05-19 20:40:52 -04:00
Jakub Kuczys
16f1760dd0 Document user_limit argument in StageChannel.edit() 2023-05-07 09:22:38 -04:00
Rapptz
0adef0ec89 Update auto_archive_duration documentation
Fix #9351
2023-04-18 06:03:48 -04:00
Puncher
dc9fb1fd84 Add missing param send_start_notification to create_instance 2023-03-06 20:15:22 -05:00
Puncher
79c508311f Add support for default_thread_slowmode_delay in TextChannel 2023-03-05 17:31:14 -05:00
Puncher
a1295868a6 Add support for default_sort_order in ForumChannel 2023-03-05 17:30:23 -05:00
Rapptz
da4651c97c Implement Messageable for StageChannel
Fix #9248
2023-02-25 03:13:55 -05:00
owocado
3644f7849c Document auto_archive_duration accepted values 2023-02-23 07:23:22 -05:00
z03h
e6ef43139f Don't store finished views/modals 2023-02-13 23:52:40 -05:00
Rapptz
a8177dd5bd Document starter message requirements in ForumChannel.create_thread 2023-01-18 07:11:49 -05:00
Rapptz
cbc46e0973 Add support for ForumChannel.default_layout 2023-01-10 16:43:18 -05:00
Rapptz
887ddbb4b6 Fix implicit permission resolution for Thread
Fix #9153
2022-12-29 07:17:41 -05:00
rdrescher909
9b6753f3b4 Add VocalGuildChannel.slowmode_delay 2022-12-14 19:08:30 -05:00
rdrescher909
039d588447 Add ForumChannel.get_thread 2022-12-14 19:06:37 -05:00
Jonah Lawrence
d7b6a2ad12 Fix usage of single backticks to links and code-blocks 2022-10-26 04:26:56 -04:00
ster
95b6bd8782 Add coro tag to docstrings that were missing it 2022-10-02 17:52:18 -04:00
Jakub Kuczys
6725f329b2 Set thread related perms in private channels to False 2022-10-01 03:14:03 -04:00
z03h
686071814b Add Forum.archived_threads 2022-09-18 19:22:21 -04:00
Vioshim
46d194df57 Fix passing None to ForumTag.emoji constructor 2022-09-17 14:12:34 -04:00
Steve C
ce06beeb6c Fix permissions-based docstrings to be more consistent 2022-09-17 14:07:39 -04:00
z03h
c854ee2978 Fix default_thread_slowmode_delay 2022-09-15 19:29:21 -04:00
Ionite
6981eb69c4 Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`, 
`__class__.__name__!r` to the standard form of 
`__class__.__name__`
2022-09-12 15:25:55 -04:00
Evan J. Markowitz
e04af033c0 Add applied_tags to ForumChannel.create_thread to match Thread.edit 2022-09-03 12:01:41 -04:00
Rapptz
fdebe069a6 Change ForumTag.emoji to be optional 2022-09-03 00:23:07 -04:00
Rapptz
40b91f0e2a Remove TextChannel.default_thread_slowmode_delay
This doesn't have meaning on text channels apparently
2022-09-01 04:52:44 -04: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
mirnovov
5039b967a0 Document get_thread not fetching archived threads 2022-08-16 16:59:20 -04:00
Rapptz
6381b5a8f4 Change abc.GuildChannel.overwrites to have Object keys if cache failed
Ultimately despite it not being the prettiest, Object keys ended up
being the sanest solution to this without destroying ergonomics.
2022-08-06 14:46:52 -04:00
zephyrkul
9fe19dcc69 [commands] Add Context.permissions and Context.bot_permissions 2022-07-04 21:48:36 -04:00
Rapptz
5de9287902 Change abc.PrivateChannel to be a proper subclass
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
2022-07-04 05:48:02 -04:00
Rapptz
96e6261d61 Change default for purge oldest_first to match history 2022-06-13 04:54:08 -04:00
Alex Nørgaard
6a58cabf5c Add Guild.create_forum and CategoryChannel.create_forum 2022-06-09 00:56:31 -04:00
Rapptz
3fe9fc92eb Automatically infer entity_type when passing concrete channels
This affects Guild.create_scheduled_event and ScheduledEvent.edit

Previously, you would always be required to pass it in. However, it
makes sense to not repeat yourself if you already know it's a stage
channel or a voice channel due to the type information.
2022-06-06 08:56:04 -04:00