aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
Commit message (Collapse)AuthorAgeFilesLines
* Properly insert at the end if position is not found when moving.Rapptz2020-10-171-1/+1
| | | | Fixes #5923
* Intern status and overwrite stringsRapptz2020-09-231-1/+2
|
* Implement VoiceProtocol lower level hooks.Rapptz2020-09-231-6/+13
| | | | | This allows changing the connect flow and taking control of it without relying on internal events or tricks.
* Fix and add documentationMichael2020-09-231-0/+5
|
* Fix allowed_mentions when sending files Xua2020-09-201-1/+1
|
* Revert "Add fetch_message_fast using history endpoint"Rapptz2020-09-141-37/+0
| | | | | | | This reverts commit a309088ae4be7c2e837e5d180822c0f9060fe86d. A rate limited was added to this method after 5 years defeating the purpose of it.
* Add missing permission in clone documentationDuck2020-09-111-0/+3
|
* Fix comparison for overwrites when checking if a channel is synced Dan Hess2020-09-091-1/+1
|
* Add fetch_message_fast using history endpointkhazhyk2020-09-071-0/+37
|
* Fix issue with empty overwritesparafoxia2020-08-251-1/+1
| | | Fixes #5756.
* Document merging behaviour of AllowedMentions in Messageable.sendRapptz2020-08-221-1/+6
|
* Optimize Channel.permissions_for by not creating temporary objectsRapptz2020-08-011-11/+7
| | | | | | | | 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
* Don't use a namedtuple for _OverwritesRapptz2020-07-081-2/+16
| | | | Fix #5109
* Fix various inconsistencies within the documentation (#5067)Sebastian Law2020-06-281-4/+4
|
* Allow editing of channel types for news and text channelsNCPlayz2020-05-291-0/+10
|
* Specify the unit for `max_age` arg in `GuildChannel.create_invite()`jack11422020-05-071-1/+1
|
* Documentation fixups for allowed mentionsRapptz2020-04-041-1/+1
|
* Rename allowed mention parameters to allowed_mentionsRapptz2020-04-041-9/+10
|
* Fix various implementation bugs with allowed mentionsRapptz2020-04-041-0/+2
|
* Add support for configuring allowed mentions per message or bot wide.Rapptz2020-04-041-3/+15
|
* Drop superfluous zero in version related changes in the documentationRapptz2020-01-211-1/+1
|
* Bump copyright year to 2020Rapptz2020-01-191-1/+1
| | | | Closes #2510
* Fix bug preventing movement of channels when there are gaps in positionRapptz2020-01-121-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original code was too aggressive in ensuring that the channel positions are correct and within bounds. Unfortunately, for Discord this number is merely a guess and there can be gaps that cause the position number to be greater than the number of channels currently in that sorting bucket. One such example of this is when a channel is deleted and created. When this happens, the positions are not updated (presumably because Discord considers this to be too expensive). Sadly this means that if a user were to create a channel, delete a channel, and then create another one then there will be gaps in the position sequence. More concretely, consider the following example: Channels with position [0, 1, 2, 3, 4]. A new channel is created so it inherits the maximum position giving us [0, 1, 2, 3, 4, 5]. We delete a channel that's smaller than the maximum so our list now looks like [0, 1, 2, 4, 5]. Next time we create a channel we will further increment the gap, giving us [0, 1, 2, 4, 5, 6]. If a user would want to move the channel with position 4 to be after position 6 (so in this case that value would 7) then the library would erroneously raise an error because it assumed too much about the data integrity. Luckily, the library upon actually doing the request fixes the channel positions so everything goes back to normal like it was intended. That is to say, [0, 1, 2, 3, 4, 5].
* Allow editing of overwrites in Channel.edit()CapnS2019-12-041-0/+22
|
* Return invites as https, various URL normalizationDevon R2019-11-151-1/+1
|
* Make permissions_synced actually return Falseapple502j2019-08-271-1/+1
| | | The code before this returned None when there is no category.
* Add versionadded string to GuildChannel.permissions_syncedRapptz2019-08-271-0/+2
|
* Add permissions_synced to abc.GuildChannelCapn2019-08-271-0/+10
| | | | This allows users to check whether or not the permissions for a Guild Channel are synced with the permissions for its category. Discord automatically syncs the permissions when the overwrites are equal so just checking if the two overwrites are equal will determine if they are synced.
* Explicitly mention discord.Object in abc.Snowflake documentation.Rapptz2019-08-111-0/+3
|
* abc.Messageable do not have to implement abc.SnowflakeRapptz2019-07-271-2/+0
| | | | Fix #2290
* Use lower level Guild.owner_id for permission resolution.Rapptz2019-07-101-2/+1
|
* fix documentation for GuildChannel.set_permissionsXua2019-06-291-2/+3
|
* Update Sphinx to 2.1.2Rapptz2019-06-281-29/+29
|
* Publicly expose a type property for all channels.Rapptz2019-06-091-1/+1
| | | | Fix #2185
* Improve documentationNCPlayz2019-06-071-96/+101
|
* Ensure message links resolve in the Messageable.pins note.Rapptz2019-05-271-2/+2
|
* Add note that Messageable.pins does not contain Message.reactionsRapptz2019-05-271-0/+6
| | | | Fix for #2189
* Fix pluralization errors in various filesEhren Julien-Neitzert2019-05-231-1/+1
| | | | | * Replaced instances of 'return an' with 'returns an' * fixed pluralization errors
* Fixed a typo in GuildChannel.overwrites docstringDevilXD2019-04-291-1/+1
|
* Explicit namespacing in the PermissionOverwrite example.Rapptz2019-04-191-1/+1
| | | | Apparently some people get confused by this.
* Add abc.GuildChannel.clone to clone a channel with another name.Rapptz2019-04-181-0/+40
| | | | Fixes #2093
* Add delay kwarg to message.delete()Vexs2019-04-181-7/+1
| | | | Refactor delete_after kwargs to use new delay kwarg
* Fix abc.GuildChannel.overwrites returning None keys.Rapptz2019-04-141-1/+8
| | | | | This has potential for data loss as a consequence of how the function works.
* simplify HistoryIterator message orderingkhazhyk2019-04-071-7/+5
| | | | | | | | | | | | | | | | | | | | 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.
* Make abc.GuildChannel.overwrites return a dictionaryRapptz2019-04-061-7/+6
| | | | Fix #2016
* Add type checking to multi-file sendDice2019-03-201-0/+2
| | | | Convert list comprehension to genexpr
* Fix sending multiple filesDice2019-03-201-2/+1
| | | | Fixes #2002
* Expose MetadataNCPlayz2019-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added access to: * `/users/@me/guilds` * `/guilds/{guild_id}` * `/guilds/{guild_id}/members/{member_id}` BREAKING CHANGE: * `get_user_info` -> `fetch_user_info` to match naming scheme. Remove useless note Remove `reverse` and corresponding documentation Update documentation to reflect #1988 Rename `get_` HTTP functions to `fetch_` Breaking Changes: * `get_message` -> `fetch_message` * `get_invite` -> `fetch_invite` * `get_user_profile` -> `fetch_user_profile` * `get_webhook_info` -> `fetch_webhook` * `get_ban` -> `fetch_ban` Fix InviteConverter, update migrating.rst Rename get_message to fetch_message
* Organise documentationNCPlayz2019-03-191-35/+35
|
* Take back ownership of files from aiohttp for retrying requests.Rapptz2019-03-181-1/+1
| | | | Fix #1809