Josh
285069de08
Fix types in guild.py
2022-02-22 04:00:46 -05:00
Josh
70b577e94b
Fix typing in voice related files
2022-02-22 02:37:22 -05:00
Rapptz
c406951532
Fix typing errors in Guild.audit_logs
2022-02-20 11:21:07 -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
4dbe1af32f
Update sphinx and fix documentation issues
2022-02-19 22:35:32 -05:00
Kaylynn Morgan
588cda0996
Refactor AsyncIter to use 3.6+ asynchronous generators
2022-02-19 21:58:13 -05:00
jack1142
dc19c6c7d5
Add positional-only arguments in more places
2022-02-19 20:28:01 -05:00
Maya
0b77b52da2
Add support for animated guild banners
...
https://github.com/discord/discord-api-docs/pull/3948
2022-02-18 20:28:36 -05:00
jack1142
783513726f
Add support for role icons
...
* Document ROLE_ICONS guild feature
https://github.com/discord/discord-api-docs/pull/3847
* Add support for role icons
https://github.com/discord/discord-api-docs/pull/3847
* Add support for role icon/emoji changes in audit log
https://github.com/discord/discord-api-docs/pull/3847
2022-02-17 11:28:03 -05:00
Izhar Ahmad
efec816de2
Make arguments positional only in 2 get methods
...
- Member.get_role
- Guild.get_member
2021-08-25 20:52:20 -04:00
Rapptz
490bbffc93
Remove in-place edits and return fresh instances instead
...
Fixes #4098
2021-08-23 23:46:50 -04:00
Nadir Chowdhury
d4c683738d
default to 0 instead of 15 for Guild.sticker_limit
2021-08-19 06:21:52 -04:00
Rapptz
b73f02b9c3
Remove deprecated TextChannel.active_threads for Guild version
...
This also fills in the ThreadMember data from the endpoint
2021-08-18 01:52:24 -04:00
la
8ac5cdc314
Fix Guild.fetch_channel not working for threads
2021-08-18 00:45:45 -04:00
Nadir Chowdhury
60d82cf908
implement guild stickers
2021-07-30 21:25:41 -04:00
Rapptz
0d3bd3083c
Add Guild.get_channel_or_thread helper method
...
The name might change in the future, unsure.
2021-07-29 01:22:07 -04:00
Nadir Chowdhury
f14e584304
Sync Guild.features to documentation
2021-07-10 03:13:14 -04:00
Alex Nørgaard
d1dc41ec2f
Fix Client.fetch_channel not returning Thread
2021-07-03 21:35:31 -04:00
Nadir Chowdhury
2d597e310b
Fix Interaction.channel being None in threads
2021-07-01 07:49:44 -04:00
Rapptz
1aeec34f84
Typehint Member and various typing fixes
2021-06-30 01:28:35 -04:00
Rapptz
2beee8be14
Type hint channel.py
2021-06-29 03:37:52 -04:00
Rapptz
a75cd93acc
Fix Guild.vanity_invite causing an error when guild has it unset
...
FIx #7103
2021-06-28 01:03:46 -04:00
RobotHanzo
75477b2995
Fix incorrect typehints in Guild.create_role
2021-06-28 00:05:40 -04:00
Rapptz
f0c76a13d3
Fix guild documentation not showing up for some methods
2021-06-11 05:25:06 -04:00
Rapptz
0dd4c4c08c
Don't use class attribute syntax for Guild typings
2021-06-10 07:50:35 -04:00
Rapptz
7dccbace78
Refactor Guild to support type hints
...
This patch also does the following:
* Sets some parameters to be positional only
* Changes Guild.edit to use the MISSING sentinel
* Changes the various create_channel methods to be type safe
* Changes many parameters from Optional[T] to use MISSING
* Changes Guild.create_role to use MISSING sentinel
This refactor is mostly partial but lays a decent foundation
2021-06-08 10:56:26 -04:00
Rapptz
bd369c76ea
Parse remaining thread events.
2021-06-08 07:29:17 -04:00
Rapptz
429c5933d9
Add minor parsing for THREAD_LIST_SYNC and THREAD_MEMBER_UPDATE
...
There's no dispatch for these yet
2021-06-08 07:26:22 -04:00
Rapptz
ac95b8b85b
Allow Message.channel to be a thread
2021-06-08 07:25:40 -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
TheLeadingLlama
2ea2693bd7
Add the Guild.delete_custom_emoji method
2021-06-07 03:25:09 -04:00
MhmCats
0847085661
Add support for editing guild widgets
2021-06-02 02:39:08 -04:00
Nadir Chowdhury
9f98a9a87f
Implement StageInstance
2021-05-30 13:51:52 -04:00
Rapptz
d78e5d979d
Refactor and type hint invites
2021-05-29 05:49:19 -04:00
Rapptz
794327cdb4
Fix type errors with required keys in the integration types
2021-05-29 01:09:07 -04:00
Maya
4d7822493f
Add support for bot integrations
2021-05-29 00:43:33 -04:00
Josh
5fa64e83e0
Fix issues with imports causing NameErrors
2021-05-12 20:24:28 -04:00
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
2021-05-10 20:24:48 -04:00
Josh
3864fb37a0
Fix various reference issues in documentation
...
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-05-06 07:51:07 -04:00
Rapptz
81004369dc
Add Guild.fetch_channel
2021-05-05 14:26:33 -04:00
Nadir Chowdhury
63974ec46d
Add discovery_splash and community field to Guild.edit
2021-05-05 07:30:54 -04:00
MrKomodoDragon
a8945b5784
Fix grammar in the Guild.edit docstring
2021-04-30 19:08:45 -04:00
pikaninja
56f4ae3a83
[docs] Update notes for get_user and get_member
2021-04-27 21:56:00 -04:00
Nadir Chowdhury
1d7f387122
[docs] stage_channels doc typo
2021-04-21 23:18:49 -04:00
z03h
304229071f
Add VoiceChannel.video_quality_mode
2021-04-17 08:10:41 -04:00
Rapptz
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
Steve C
65d48302ad
Fix guild.chunk() not working on evicted guilds
...
If you're trying to chunk a guild that the bot is not in,
it'll just hang on the chunk coro forever. It's weird, I know.
2021-04-14 22:10:47 -04:00
Maya
930c416ea7
Fix exception for invalid channel types
2021-04-14 01:14:00 -04:00
Robin
30310b9ab6
Add NSFW for Guilds
2021-04-14 00:48:51 -04:00