140 Commits

Author SHA1 Message Date
Rapptz
bd6bbdab00 Add support for stage message types 2023-02-27 09:17:40 -05:00
Rapptz
441d38f56b Add fallback for sticker filename lookup 2023-02-09 16:19:01 -05:00
Rapptz
24495e5505 Add support for GIF sticker type 2023-01-10 18:18:43 -05:00
Rapptz
8e52db1f1b Add new message types to MessageType enum 2023-01-10 18:10:30 -05:00
Rapptz
3d24f0fb12 Add support for role subscription reading 2023-01-10 18:05:00 -05:00
Rapptz
cbc46e0973 Add support for ForumChannel.default_layout 2023-01-10 16:43:18 -05:00
Rapptz
bdeccaf106 Add Locale.indonesian 2022-12-14 19:22:49 -05:00
Rapptz
3d39f70d30 Add active developer flag 2022-11-10 13:58:31 -05:00
Trevor
5009c83bc9
Implement New Select Types
Co-authored-by: Soheab_ <33902984+Soheab@users.noreply.github.com>
Co-authored-by: rdrescher909 <51489753+rdrescher909@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-10-27 10:03:45 -04:00
Josh
c2f9e0be43
Add additional audit log types for automod 2022-08-28 02:08:05 -04:00
z03h
1097e1d975
Add mention_spam automod trigger and change default values 2022-08-16 16:58:59 -04:00
z03h
04aeff660b
Add automod types to audit log 2022-07-07 19:30:03 -04:00
Alex Nørgaard
5426d19dc7
Implement AutoMod 2022-06-27 00:47:52 -04:00
Soheab
3aa55ba1ed
Implement Application Command Permissions models 2022-06-07 01:35:33 -04:00
z03h
619bc50e5d
Add application command permissions to audit log 2022-05-01 18:59:57 -04:00
Rapptz
23f6876492 Add initial support for forum channels
Closes #7652
2022-04-06 23:02:58 -04:00
Jonah Lawrence
37bbfdce95
Add context_menu_command Message type 2022-03-30 19:13:00 -04:00
Rapptz
def035bf9a Remove StoreChannel and any references to it 2022-03-28 00:09:19 -04:00
jack1142
5ffa3e85de
Update comments after # type: ignore to be compatible with PEP 484 2022-03-27 22:26:34 -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
Rapptz
06291d860c Change enum members in Locale to be snake_case
Not even sure how this slipped through.
2022-03-05 23:17:37 -05:00
Rapptz
aa74238053 Reorganise documentation for interactions 2022-03-04 21:17:27 -05:00
Josh
147948af9b
Use typing.Self throughout library 2022-03-01 07:53:24 -05:00
Rapptz
ae1aaac5a7 Add support for autocomplete 2022-03-01 05:42:44 -05:00
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events 2022-03-01 01:00:04 -05:00
Rapptz
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
Rapptz
cc21872072 Add Locale enum 2022-02-23 08:41:50 -05:00
mniip
ff90e7e747
GUILD_UPDATE audit logs 2022-02-22 08:48:26 -05:00
Rapptz
d01e73fca5 Document more uses of type ignore 2022-02-21 23:08:26 -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
Josh
19c6687b55
Add support for Modal Interactions 2022-02-20 04:57:44 -05:00
Kowlin
bae0cdf2a7
Add SPAMMER user flag 2022-02-17 22:14:21 -05:00
jack1142
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
Sebastian Law
835432d161
Allow enums to be compared 2021-08-24 02:28:39 -04:00
Nadir Chowdhury
60d82cf908
implement guild stickers 2021-07-30 21:25:41 -04:00
Nadir Chowdhury
154c90ef59
Add audit log events for threads 2021-07-28 19:57:42 -04:00
Rapptz
5d798aa5e6 Fix some typing errors and reformat enums.py 2021-07-04 05:32:26 -04:00
Rapptz
4f0e907e44 Add ButtonStyle.url alias for ButtonStyle.link 2021-07-01 20:42:56 -04:00
Nadir Chowdhury
f7b0ed7b12
Add ButtonStyle.gray alias 2021-06-28 00:01:13 -04:00
Nadir Chowdhury
c2df574b2a
Add audit log entries for stage instances 2021-06-09 08:09:05 -04:00
Rapptz
4a4e73ec14 Update thread typings and payloads to match documentation 2021-06-08 07:26:18 -04:00
Rapptz
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
Nadir Chowdhury
a7ae2eb1bb
Add Guild.nsfw_level 2021-06-07 23:20:04 -04:00
Rapptz
89d24cb0bc Add interaction enums to __all__ 2021-05-31 05:56:50 -04:00
Nadir Chowdhury
9f98a9a87f
Implement StageInstance 2021-05-30 13:51:52 -04:00
Rapptz
267fad9180 Add WebhookType.application 2021-05-30 10:02:58 -04:00
Zomatree
b48f510e15
Add invite targets for voice channel invites 2021-05-29 00:15:46 -04:00
Rapptz
ff36aedf7b Add support for reading SelectMenu components from messages 2021-05-28 05:34:21 -04:00
Rapptz
3b83f60b35 Add support for setting interaction responses 2021-05-27 00:53:14 -04:00
Rapptz
80fd222ca0 Add aliases for button style colours 2021-05-27 00:53:14 -04:00