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
c31946f29f
Type hint GuildChannel and don't make it a Protocol
...
This reverts GuildChannel back into a base class mixin.
2021-05-05 11:14:58 -04:00
Josh
6622be9f46
Make GuildChannel inherit Snowflake
2021-05-05 07:42:39 -04:00
Sebastian Law
b82a0dc6fd
[docs] remove mentions of bot only usability
2021-05-04 07:21:59 -04:00
Josh
dc67d2bd85
Replace uses of Ellipsis as sentinels with utils.MISSING
2021-05-03 00:31:07 -04:00
Nadir Chowdhury
c786a85a9b
Add utils.MISSING
2021-04-29 01:58:36 -04:00
Rapptz
d60689a983
Properly change abc.User.avatar type to Asset
2021-04-25 23:30:30 -04:00
z03h
304229071f
Add VoiceChannel.video_quality_mode
2021-04-17 08:10:41 -04:00
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references
2021-04-15 22:41:41 -04:00
pikaninja
23aaa75802
Add StageChannel to abc.GuildChannel docs
2021-04-13 01:19:29 -04:00
Rapptz
ef4394f87d
Add support for role objects in GuildChannel.permissions_for
2021-04-11 22:45:49 -04:00
Rapptz
d85805ab6d
First pass at supporting v8 API
2021-04-11 00:39:13 -04:00
TheOneMusic
ec71eb2fcb
Added discord.StageChannel in documentation
2021-04-10 13:49:46 -04:00
Rapptz
99fc950510
Use f-strings in more places that were missed.
2021-04-08 06:02:47 -04:00
Nadir Chowdhury
89456022cf
Add __all__
to remaining modules
2021-04-07 02:30:32 -04:00
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
...
Naive datetimes will now be interpreted as local time throughout
the library.
2021-04-04 23:54:08 -04:00
James
34ab772653
Use typing.Protocol instead of abc.ABCMeta
2021-04-04 18:05:49 -04:00
Rapptz
94bd1b9822
Convert two missing places to f-strings
2021-04-04 07:17:03 -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
Tarek
6524869ddd
Implement voice region changing for voice channels
2021-04-01 03:49:45 -04:00
Rapptz
0c3be9713d
Raise error if position could not be resolved in GuildChannel.move
2021-03-30 04:11:06 -04:00
Rapptz
7f0db1f35a
Return early if no kwargs are given to GuildChannel.move
2021-03-30 03:54:58 -04:00
Rapptz
a30ad6acf2
Ignore moving category channels to another category
2021-03-30 03:51:06 -04:00
Rapptz
b850c9cd5d
Add GuildChannel.move helper method to help with moving channels
...
Moving channels is seen as a complicated task, so hopefully this
abstracts a lot of it for users. There is no bulk move helper yet
since I'm unsure how the API for that should be.
2021-03-30 03:21:09 -04:00
Nadir Chowdhury
7d345e8e4e
remove trailing whitespace
2021-03-13 00:42:25 -05:00
SuzuZusu
b903066e4d
Allow for callable class factories in abc.Connectable.connect
2021-02-24 21:14:42 -05:00
Sebastian Law
2f15e7d8e4
fix mention_author in send causing unexpected allowed mentions
2021-02-24 03:06:44 -05:00
Rapptz
272339d5e6
Add support for the new permission serialization scheme.
2021-02-18 07:26:20 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
Misa
fff2234823
Fix wrong documented permission for GuildChannel.invites()
...
I tested it just now, and manage_guild is not the permission you need to
fetch invites from a given channel. You need manage_channels.
Note that this isn't the same as Guild.invites(), which DOES use
manage_guild.
2020-12-07 18:34:51 -05:00
Nadir Chowdhury
6b803acde4
[chore] Remove redundant imports
...
This also removes the historical patch for NullHandler implemented in bbf1c54, as it has been available since Python 3.1.
2020-11-28 03:16:49 -05:00
Rapptz
bd6ab93348
Code cleanup involving enums and message replies
2020-11-27 00:32:08 -05:00
PikalaxALT
d1cb30cccf
Implement discord.Message.reply
2020-11-26 23:19:00 -05:00
webtax-gh
25f23ec113
Properly document that categories throw 404's on create_invite.
2020-11-21 22:16:41 -05:00
Rapptz
b9e1bdf87e
Properly insert at the end if position is not found when moving.
...
Fixes #5923
2020-10-17 01:52:35 -04:00
Rapptz
f2de794bde
Intern status and overwrite strings
2020-09-23 03:21:20 -04:00
Rapptz
0b93fa3a82
Implement VoiceProtocol lower level hooks.
...
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
2020-09-23 03:20:35 -04:00
Michael
93fa46713a
Fix and add documentation
2020-09-23 03:19:35 -04:00
Xua
6ae615baae
Fix allowed_mentions when sending files
2020-09-20 00:14:00 -04:00
Rapptz
986adae108
Revert "Add fetch_message_fast using history endpoint"
...
This reverts commit a309088ae4be7c2e837e5d180822c0f9060fe86d.
A rate limited was added to this method after 5 years defeating the
purpose of it.
2020-09-14 01:18:09 -04:00
Duck
ddc4ad24f4
Add missing permission in clone documentation
2020-09-11 04:55:26 -04:00
Dan Hess
a1a4a4fd7f
Fix comparison for overwrites when checking if a channel is synced
2020-09-09 19:49:05 -04:00
khazhyk
a309088ae4
Add fetch_message_fast using history endpoint
2020-09-07 23:04:11 -04:00
parafoxia
1f4f010e51
Fix issue with empty overwrites
...
Fixes #5756 .
2020-08-25 22:45:32 -04:00
Rapptz
45752ab354
Document merging behaviour of AllowedMentions in Messageable.send
2020-08-22 17:14:02 -04:00
Rapptz
14fd3dbaa7
Optimize Channel.permissions_for by not creating temporary objects
...
This seemed to have shaved a few microseconds:
10.8 µs ± 79.6 ns per loop → 8.53 µs ± 48.1 ns per loop
12 µs ± 613 ns per loop → 8.72 µs ± 30.2 ns per loop
With 100K loops each
2020-08-01 19:48:15 -04:00
Rapptz
0bc15fa130
Don't use a namedtuple for _Overwrites
...
Fix #5109
2020-07-08 23:18:13 -04:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
2020-06-28 03:45:58 -04:00
NCPlayz
bd1420b5f0
Allow editing of channel types for news and text channels
2020-05-29 23:21:59 -04:00