Josh
5fa64e83e0
Fix issues with imports causing NameErrors
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Josh
3864fb37a0
Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <[email protected] >
4 years ago
Rapptz
c31946f29f
Type hint GuildChannel and don't make it a Protocol
This reverts GuildChannel back into a base class mixin.
4 years ago
Josh
6622be9f46
Make GuildChannel inherit Snowflake
4 years ago
Sebastian Law
b82a0dc6fd
[docs] remove mentions of bot only usability
4 years ago
Josh
dc67d2bd85
Replace uses of Ellipsis as sentinels with utils.MISSING
4 years ago
Nadir Chowdhury
c786a85a9b
Add utils.MISSING
4 years ago
Rapptz
d60689a983
Properly change abc.User.avatar type to Asset
4 years ago
z03h
304229071f
Add VoiceChannel.video_quality_mode
4 years ago
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references
4 years ago
pikaninja
23aaa75802
Add StageChannel to abc.GuildChannel docs
4 years ago
Rapptz
ef4394f87d
Add support for role objects in GuildChannel.permissions_for
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
TheOneMusic
ec71eb2fcb
Added discord.StageChannel in documentation
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
ff7094ce96
Convert datetimes to aware datetimes with UTC.
Naive datetimes will now be interpreted as local time throughout
the library.
4 years ago
James
34ab772653
Use typing.Protocol instead of abc.ABCMeta
4 years ago
Rapptz
94bd1b9822
Convert two missing places to f-strings
4 years ago
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`.
4 years ago
Tarek
6524869ddd
Implement voice region changing for voice channels
4 years ago
Rapptz
0c3be9713d
Raise error if position could not be resolved in GuildChannel.move
4 years ago
Rapptz
7f0db1f35a
Return early if no kwargs are given to GuildChannel.move
4 years ago
Rapptz
a30ad6acf2
Ignore moving category channels to another category
4 years ago
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.
4 years ago
Nadir Chowdhury
7d345e8e4e
remove trailing whitespace
4 years ago
SuzuZusu
b903066e4d
Allow for callable class factories in abc.Connectable.connect
4 years ago
Sebastian Law
2f15e7d8e4
fix mention_author in send causing unexpected allowed mentions
4 years ago
Rapptz
272339d5e6
Add support for the new permission serialization scheme.
5 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
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.
4 years ago
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.
4 years ago
Rapptz
bd6ab93348
Code cleanup involving enums and message replies
4 years ago
PikalaxALT
d1cb30cccf
Implement discord.Message.reply
4 years ago
webtax-gh
25f23ec113
Properly document that categories throw 404's on create_invite.
4 years ago
Rapptz
b9e1bdf87e
Properly insert at the end if position is not found when moving.
Fixes #5923
5 years ago
Rapptz
f2de794bde
Intern status and overwrite strings
5 years ago
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.
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Xua
6ae615baae
Fix allowed_mentions when sending files
5 years ago
Rapptz
986adae108
Revert "Add fetch_message_fast using history endpoint"
This reverts commit a309088ae4
.
A rate limited was added to this method after 5 years defeating the
purpose of it.
5 years ago
Duck
ddc4ad24f4
Add missing permission in clone documentation
5 years ago
Dan Hess
a1a4a4fd7f
Fix comparison for overwrites when checking if a channel is synced
5 years ago
khazhyk
a309088ae4
Add fetch_message_fast using history endpoint
5 years ago
parafoxia
1f4f010e51
Fix issue with empty overwrites
Fixes #5756 .
5 years ago
Rapptz
45752ab354
Document merging behaviour of AllowedMentions in Messageable.send
5 years ago
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
5 years ago
Rapptz
0bc15fa130
Don't use a namedtuple for _Overwrites
Fix #5109
5 years ago
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation ( #5067 )
5 years ago