Rapptz
a339e01047
[tasks] Compare using full datetime rather than sole time
...
Comparisons using just the time object without an attached date
are pretty buggy and incomplete -- comparisons only make sense when
given a particular instant of time.
Ref: #7676
2022-03-13 20:45:05 -04:00
Rapptz
58ad146a4e
Remove window re-assignment in gateway rate limiter
...
This was a hold over from the old cooldown implementation.
2022-03-13 12:09:07 -04:00
Rapptz
c0890bfbc1
Remove unused View._expires_at private function
2022-03-13 11:50:09 -04:00
Rapptz
64c6639f4b
[tasks] Handle loop functions running multiple times due to clock drift
2022-03-13 11:36:00 -04:00
Rapptz
9c61e10a55
Move all async object creation to a proper initialisation point
...
This should make it so no object is created with another loop
2022-03-13 08:33:25 -04:00
Rapptz
8d4f08a5e7
Fix AutoShardedClient to work with the new asyncio loop machinery
...
Fix #7675
2022-03-13 08:05:44 -04:00
Vish M
049df7c586
Add a note to users that they must have the message content intent
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-13 07:48:41 -04:00
Rapptz
6a43d60acf
[tasks] Refactor tasks to not store a time index state
...
It's better to recompute it every time rather than suffer from
maintaining the extra state.
2022-03-13 06:20:44 -04:00
Rapptz
c02a3c0bb2
Add asynchronous context manager support for Client
2022-03-13 05:04:55 -04:00
Han Seung Min - 한승민
93af158b0c
Refactor loop code to allow usage of asyncio.run
2022-03-13 04:54:14 -04:00
apple502j
196db33e9f
[docs] fix typo in sticker_create docs
2022-03-13 01:19:14 -05:00
Rapptz
5e9097179b
Add CommandTree.copy_global_to method for quick development
2022-03-12 21:32:35 -05:00
Rapptz
3718192b9c
Raise a TypeError if a non-View is passed to Webhook.send
2022-03-12 21:01:07 -05:00
Rapptz
42beec9fa9
Fix bug when app commands would not have a module attribute set on copy
2022-03-12 20:55:08 -05:00
Rapptz
d63fd578c2
Change TextChannel annotation channel_types to include news channels
2022-03-12 20:51:32 -05:00
Dawid K
5f2d9a9ffa
Fix state parameter in Interaction.edit_original_message
2022-03-12 20:50:01 -05:00
metro
342652c8ad
Document NotFound for Interaction original_message methods
2022-03-12 20:49:06 -05:00
Rapptz
6def5c9131
Allow specifying float default values for app commands
2022-03-12 09:41:28 -05:00
Gnome!
68b7ee6b99
Add Client.setup_hook
2022-03-12 09:39:43 -05:00
Rapptz
1d1bba1f90
Support app_commands.guilds decorator for context menu commands
2022-03-12 09:28:46 -05:00
Rapptz
0ef369c0fa
[commands] Automatically unload top level app commands in extensions
2022-03-12 09:24:26 -05:00
Rapptz
a672455ca9
Fix some context menu commands not being registered in guild contexts
...
This happened when there weren't any application commands due to a typo
stemming from a copy paste error.
Fixes #7650
2022-03-12 08:39:57 -05:00
Rapptz
d68f2db7cb
[commands] Always respect guild IDs passed to cog adding and removal
...
Fixes #7657
2022-03-12 06:58:55 -05:00
Rapptz
d921a03911
Fix bug where Guild.member_count would clear during update events
...
Fix #7656
2022-03-12 04:19:52 -05:00
Rapptz
9fd63ad7f3
Fix Optional type hints not respecting explicitly set defaults
2022-03-12 02:03:17 -05:00
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
2022-03-11 23:25:43 -05:00
metro
124a3ee42a
Add Widget.presence_count attribute and fix Widget types
2022-03-11 21:51:40 -05:00
Rapptz
9dea6caf20
Ensure cog app commands is a list rather than a dict
...
There was a remnant of it being a dict in the metaclass.
2022-03-11 21:30:49 -05:00
thetimtoy
a877b269da
Remove unused Object import
2022-03-11 21:16:35 -05:00
Nadir Chowdhury
c95d12dcfc
Prevent KeyError
when removing scheduled event user
2022-03-11 20:50:49 -05:00
Priyam
206c340252
Fix versionadded in UserFlags.spammer
...
Fixes #7643
2022-03-11 10:28:41 -05:00
Rapptz
333849e5a3
Unbind bound methods passed to Command constructor
...
Fixes #7600
2022-03-11 10:26:16 -05:00
Rapptz
140a827190
Fix default guilds for commands not being respected
...
Pesky little typo
Fix #7641
2022-03-11 08:33:37 -05:00
Rapptz
740c156cd8
Allow Optional transformers to work at runtime
2022-03-11 08:06:11 -05:00
Rapptz
bbf7a7981b
Ensure all choices are the same type as the parameter type
...
Fixes #7625
2022-03-11 07:29:11 -05:00
Rapptz
377561844d
Raise an error if a child command has default guilds set
2022-03-11 07:18:34 -05:00
Rapptz
f54c4ca54e
Validate application command names
2022-03-11 06:40:28 -05:00
I. Ahmad
65fc6951bc
Add support for stage instance's scheduled event
2022-03-11 04:09:56 -05:00
Sebastian Law
04535e4e1d
[tasks] use None instead of MISSING for internal attributes
2022-03-10 23:12:22 -05:00
Rapptz
f4ca36ec5a
Add Member.timeout helper method
2022-03-10 21:32:33 -05:00
Sebastian Law
483ffeacd4
Inject state into PartialEmoji in Activity
2022-03-10 20:56:20 -05:00
Neon Jonn
adb69e7157
Fix some spelling mistakes
2022-03-10 20:45:16 -05:00
Rapptz
26c6b4d449
Use new differentiator for guild and global commands
...
Fixes #7602
2022-03-10 20:10:49 -05:00
Rapptz
02fcc814e1
Allow passing guild_ids in constructors of Command and Group
...
Fixes #7626
2022-03-10 19:31:27 -05:00
Rapptz
f6453d9439
Fix free functions being passed a binding in autocomplete callbacks
...
Fix #7624
2022-03-10 19:26:00 -05:00
Eric Schneider
ef92170a9d
Fix Message.edit ignoring suppress kwarg
2022-03-10 18:56:42 -05:00
daima3629
0ea6fdac5a
Fix typo in Client.get_stage_instance
2022-03-10 18:53:20 -05:00
Arthur
8502978649
Check the global scope when dispatching context menus
2022-03-10 18:51:14 -05:00
Willy
f09f0ea8ca
Fix addition TypeError with Guild.member_count
2022-03-10 17:44:42 -05:00
Omkaar
d22a7fb793
Fix intents typo in new_member example
2022-03-10 06:20:33 -05:00