309 Commits

Author SHA1 Message Date
Rapptz
f045b7d63c Fix BanEntry not being exported despite being documented 2022-04-23 01:53:21 -04:00
Mad Cat
c885aa0b99
Add NotFound to ban docstring 2022-04-18 17:23:40 -04:00
lightningyx
482bd11ac7
Fix Guild.fetch_member docstring
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-18 06:26:32 -04:00
Daniel Grant
18a6881fd9
Add NotFound to unban docstring 2022-04-17 02:19:20 -04:00
Rapptz
d98ee567d4 Add Guild.forums property
Ran an informal poll in the official server and this name won over the
alternative Guild.forum_channels property name
2022-04-13 17:40:16 -04:00
I. Ahmad
6265723a35
Add support for archive duration in Guild.create_text_channel 2022-04-11 17:21:08 -04:00
Rapptz
23f6876492 Add initial support for forum channels
Closes #7652
2022-04-06 23:02:58 -04:00
Rapptz
58db635229 Fix parameter validation in Guild.query_members 2022-04-03 08:07:01 -04:00
Rapptz
ca9fd355e8 Fix typo in Guild.bans docstring 2022-04-01 00:26:33 -04:00
Rapptz
9acf1db076 Support ban endpoint pagination 2022-04-01 00:09:02 -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
I. Ahmad
181fc42b9b
Remove outdated note and example 2022-03-23 04:19:55 -04:00
curiositIy
c6d113c843
Change PUBLIC to COMMUNITY in Guild.edit 2022-03-22 18:11:43 -04:00
Rapptz
5f7c5abe0a Change ban type hints to use int instead of Literal 2022-03-18 21:45:15 -04:00
Rapptz
4a76464ac9 Fix return value of Guild.chunk 2022-03-18 07:37:28 -04:00
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable 2022-03-17 07:26:01 -04:00
Rapptz
61577677cd Fix Guild.fetch_members limit parameter typing to be Optional 2022-03-16 00:39:05 -04:00
Lilly Rose Berner
6dd8845e4f
Fix Guild.audit_logs order being reversed without oldest_first and after 2022-03-14 06:23:40 -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
d921a03911 Fix bug where Guild.member_count would clear during update events
Fix #7656
2022-03-12 04:19:52 -05:00
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs 2022-03-11 23:25:43 -05:00
Rapptz
71586836e1 Add Guild.vanity_url helper property 2022-03-10 05:06:02 -05:00
Steve C
9c054e9222
Remove unbound remnants of Guild._member_count
Since now it's always Optional[int]
2022-03-09 23:22:07 -05:00
Alex Nørgaard
03687fb616
Change Guild.member_count to Optional[int] 2022-03-09 23:06:07 -05:00
Rapptz
987e27dfce Revert all Guild.chunk changes
This method should *not* return a list of members due to the way it is
used internally.
2022-03-07 22:14:38 -05:00
Stocker
e15415413b
Add missing parameters to certain methods
- slowmode_delay and reason in Message.create_thread
- slowmode_delay in TextChannel.create_thread
- reason in Guild.edit_widget
2022-03-06 23:00:50 -05:00
Sebastian Law
b77cf500a2
Make description parameter of Guild.create_sticker non-Optional
Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com>
2022-03-06 18:43:42 -05:00
AmeyWale
a909c1ff06
Added vanity_url_code field in class guild 2022-03-06 03:50:13 -05:00
I. Ahmad
8360e4af8d
Add premium_progress_bar_enabled attribute on Guild 2022-03-06 03:17:28 -05:00
Stocker
07a1311bf4
Change Guild.preferred_locale to use the Locale enum 2022-03-05 23:30:51 -05:00
Rapptz
82464419ce Fix black reformatting on guild file
Black seems to not properly run on 2nd commits on PRs so this slid
through.
2022-03-05 22:14:58 -05:00
Steve C
e9c91a535a
Fix Guild.chunk() returning list of members 2022-03-05 22:10:58 -05:00
JDJG Inc. Official
e69428a841
Add with_counts support for Client.fetch_guild
Co-authored-by: Stocker <44980366+StockerMC@users.noreply.github.com>
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-05 22:09:19 -05:00
Rapptz
13e102b6b9 Add default parameter to CommandTree.sync
I'm not sure how I feel about this, since explicitly passing
guild=None seems better.
2022-03-05 22:02:33 -05:00
Scrumpy (Jay)
3d0309ca4a
Documenting that guild.chunk() returns list of members 2022-03-05 21:32:27 -05:00
Rapptz
d44328d3ea Remove region from Guild.__slots__
This also fixes up some docstrings
2022-03-01 05:54:26 -05:00
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events 2022-03-01 01:00:04 -05:00
mniip
d5f23dbfc2
Fix docs for Guild.mfa_level 2022-02-27 21:18:01 -05:00
jack1142
e44dd3dee5
Fix position of versionadded and add new versionchanged 2022-02-27 21:16:45 -05:00
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -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
mniip
ff90e7e747
GUILD_UPDATE audit logs 2022-02-22 08:48:26 -05:00
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