Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Willy
43e38654e9
Added docs for overwrites kwarg for CategoryChannel.edit
5 years ago
Rapptz
a1d41f16d8
Document NotFound exception raise in message deletion endpoints
5 years ago
CapnS
072cef3bb6
Allow editing of overwrites in Channel.edit()
6 years ago
Naegin
cc2aecd3ff
Fix 'purge' method docstring.
6 years ago
NCPlayz
dab2519a09
Implement `TextChannel.follow()`
6 years ago
apple502j
30c9e33384
[docs] category_id is Optional
6 years ago
Rapptz
5f272fa151
Add VoiceChannel.voice_states low level helper.
6 years ago
Rapptz
7e2da1c93b
Publicly expose a type property for all channels.
Fix #2185
6 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Rapptz
2cd6d771ec
Make __repr__ slightly more detailed and add a few missing ones.
This includes raw events (which didn't have any) and a few other
types that were missing them. Upon review some more useful fields were
added to the repr output which would be more useful during debugging.
6 years ago
Vexs
bf5b267c55
Correct the documentation for methods and properties that return Assets
6 years ago
DevilXD
b8e45afe9a
Fixed TextChannel edit method missing slowmode unit
6 years ago
Rapptz
919dbcafb3
Consistent use of __all__ to prevent merge conflicts.
6 years ago
Rapptz
eb4de55f6d
Add reason to TextChannel.create_webhook
The reason parameter does not work with webhook deletes or edits so
they're not added. Probably a Discord bug.
6 years ago
Rapptz
f5c38c3559
Add abc.GuildChannel.clone to clone a channel with another name.
Fixes #2093
6 years ago
Rapptz
812578f0c9
Remove legacy nsfw check.
6 years ago
Lorenzo
b969016340
Bool fix in TextChannel.purge documentation.
6 years ago
apple502j
024e57efc2
Change slowmode max value in docs
6 years ago
khazhyk
366dc4855b
simplify HistoryIterator message ordering
rename reverse -> oldest_first, which is more obvious what it does.
Then, honor it entirely - if you specify no `after` endpoint, we default
to the beginning of message history, similar to how `before` defaults to
the end of message history.
This is a breaking change, and will change the behavior of any iterator
that previously would have been returning messages in a weird order for
limits over 100
`for msg in history(reversed=True, limit=300)` would return the newest
300 messages, in a messed up order (100..0, 200..100, 300..200).
`for msg in history(oldest_first=True, limit=300)` will now return the
oldest 300 messages in order. And so on.
`for msg in history(after=msg)` is unchanged, this previously would
return the oldest 100 messages after `msg`, oldest->newest order, and
still will.
6 years ago
NCPlayz
be227ebcf0
Redesign asset retrieval in the library.
Most assets now return a new class named `Asset`. This allows for the
assets to be consistently saved via a `save` method instead of special
casing for `Attachment`.
`AppInfo` is no longer a namedtuple it is a fully documented dataclass,
as well as having the state attached to it.
Fixes #1997
6 years ago
Capn
fd3a176793
Fix documentation for Channel.last_message
6 years ago
Rapptz
35c0476dbb
Add TextChannel.last_message_id and TextChannel.last_message
6 years ago
NCPlayz
fb02191b80
Organise documentation
6 years ago
Rapptz
cb9ae7bd76
Sorting bucket requires an integer.
6 years ago
Rapptz
f3f2f882fd
Fix typo in private property name.
6 years ago
Rapptz
5061915b2a
Add support for store channels.
6 years ago
Rapptz
a70db36cfc
Handle type updates in TextChannel._update for news channels.
6 years ago
Nadir Chowdhury
999ac0a0e3
Add Category.create_text_channel/Category.create_voice_channel ( #1976 )
Fixes #1971
6 years ago
Rapptz
5ea84fb971
Add support for guild news channels.
6 years ago
Steve C
8beabcc39a
Fix typing for Channel.purge's limit kwarg.
PyCharm was throwing a fit when I set it to None. 😒
6 years ago
Pedro Cunha
4ebe02ab1f
Fix documentation typo in CategoryChannel
6 years ago
Chris
1222bce271
Add CategoryChannel.text_channels and voice_channels
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
Michael H
f45aef7c2e
Handle implicit perms in discord.VoiceChannel.permissions_for
This adds some implicit permission handling for `discord.VoiceChannel.permissions_for`
This is not documented behavior in discord's developer documentation, but it can easily be verified as correct.
6 years ago
Hornwitser
efb4ff850e
[lint] Fix import order
Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
7 years ago
Rapptz
860d6a9ace
Revert "Rework documentation to not duplicate inherited members."
This reverts commit 96981210b3
.
7 years ago
Rapptz
96981210b3
Rework documentation to not duplicate inherited members.
This will probably be reverted in 1 week.
7 years ago
Rapptz
5c24e69cf2
Fix up the Sphinx strings causing warnings.
7 years ago
Rapptz
0352c80a17
Add support for Discord's slow mode.
Adds the following:
* `slowmode_delay` for `TextChannel.edit`
* `slowmode_delay` attribute for `TextChannel`
7 years ago
BeatButton
a4d1599ce9
Change docstrings to raw-strings
7 years ago
Hornwitser
c557ee33ca
[lint] Fix types used for __slots__ and __all__
Stay consistent with the rest of the library and use lists for module
__all__ values and tuples for class __slots__ attributes.
7 years ago
Hornwitser
c8b49d37be
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
7 years ago
Rapptz
4aecdea052
Make TextChannel.create_webhook name parameter mandatory.
7 years ago
Rapptz
f25091efe1
Drop support for Python 3.4 and make minimum version 3.5.2.
7 years ago
Steve C
0e945915b7
Fixes various documentation errors/inconsistencies
Mostly dealing with permissions, also fixes Raw Events inclusion.
7 years ago
Rapptz
1590441dbf
Fix typo in TextChannel.delete_messages documentation.
7 years ago
Jared Shields
2f562bd695
Update docstrings for channel.py
`delete_messages` requires `manage_messages`; the docs in here, nor on RTD reflect this.
Small amendment at line 180, adding three additional.
7 years ago
Tobotimus
3112e1c17e
Add intersphinx
7 years ago
Rapptz
89bbbec37e
Missing name parameter in VoiceChannel.edit documentation.
8 years ago