119 Commits

Author SHA1 Message Date
Chiggy-Playz
eadd424b44 Update comment placement 2021-10-22 22:51:59 +05:30
Chiggy-Playz
bc8d4b3306
Update new_guild to guild_create
Co-authored-by: Gnome! <45660393+Gnome-py@users.noreply.github.com>
2021-10-22 22:48:35 +05:30
Chiggy-Playz
f96083e109
Typehint format method
Co-authored-by: Stocker <44980366+StockerMC@users.noreply.github.com>
2021-10-18 19:53:31 +05:30
Chiggy-Playz
711fd40e5b Rename enum elements. 2021-10-17 13:32:29 +05:30
Chiggy-Playz
2ea5280990 Format with black 2021-10-17 01:20:18 +05:30
Chiggy-Playz
67d19b4fda Add ProtocolUrl to __all__ 2021-10-17 01:17:28 +05:30
Chiggy-Playz
2cc9d7b46c Typehint ProtocolUrl methods 2021-10-17 00:41:20 +05:30
Chiggy-Playz
64ff807309 Update enum name to singular 2021-10-17 00:40:57 +05:30
Chiggy-Playz
3a9258b49f Format with black 2021-10-17 00:26:52 +05:30
Chiggy-Playz
56b6ccd87e Fix links and Add format support 2021-10-17 00:18:29 +05:30
Chiggy-Playz
01e21b7b54 Define ProtocolUrls Enum 2021-10-16 01:18:59 +05:30
Lint Action
7513c2138f Fix code style issues with Black 2021-09-05 21:34:20 +00: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
Rapptz
eda6680377 Rename enums to use official API naming 2021-05-27 00:53:14 -04:00
Rapptz
98570793e4 Add initial support for buttons and components 2021-05-27 00:53:13 -04:00
Stanisław Jelnicki
67aabc3230
Remove VerificationLevel aliases 2021-05-25 20:51:08 -04:00
Stanisław Jelnicki
65439732b3
Add Discord Certified Moderator user flag 2021-05-23 05:07:33 -04:00
Rapptz
b32ad3de37 Fix AuditLogEntry.target being incorrect for bulk message delete
Fixes #6851
2021-05-04 22:03:20 -04:00
sudosnok
67abfea61a
Add target_user and target_type to Invite objects 2021-04-21 23:30:35 -04:00
Nadir Chowdhury
95777230b0
Add MessageType.guild_invite_reminder 2021-04-18 20:33:56 -04:00
z03h
304229071f
Add VoiceChannel.video_quality_mode 2021-04-17 08:10:41 -04:00
NCPlayz
4c565e5299 add reply and application_command types 2021-04-11 00:39:13 -04:00
Rapptz
72275a73fa Use non-underscore TypeVar in enum code 2021-04-06 07:35:02 -04:00
Rapptz
008432c76a Make enum code work with typecheckers
This also makes it so invalid enum values fall back to a proxy type
that still works similar to actual values.
2021-04-06 01:11:36 -04:00
Rapptz
8cece19b22 Add on_interaction event and Interaction class.
This is the first pass at the functionality. It's currently a bit
incomplete.
2021-04-06 01:11:36 -04:00
Rapptz
54288879e2 Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
2021-04-04 10:15:30 -04:00
Rapptz
9d39b135f4 Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods 2021-04-03 22:43:41 -04:00
Nadir Chowdhury
6f748e5da5
Add remaining v6 message types 2021-02-23 03:57:11 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present 2021-01-15 05:28:11 -05:00
Rapptz
bd6ab93348 Code cleanup involving enums and message replies 2020-11-27 00:32:08 -05:00
Rapptz
c8954906cb Sticker implementation cleanup 2020-11-23 06:05:25 -05:00
Zomatree
344cb96c5d
Add sticker support 2020-11-23 05:09:20 -05:00
Rapptz
23ae084b8c Allow finer grained control over the member cache. 2020-09-23 03:21:20 -04:00