Commit Graph
102 Commits
Author SHA1 Message Date
Rapptz 3527203e07 [commands] Redesign HelpFormatter into HelpCommand
Part of #1938
2019-03-15 05:54:23 -04:00
Rapptz a8dd4a826f Document listener changes in the migrating docs. 2019-02-23 04:26:03 -05:00
Rapptz caf3d17d4a Rework entire cog system and partially document it and extensions. 2019-02-23 04:10:10 -05:00
SnowyLuma e89e7dfe93 Add support for multiple activities 2018-11-24 22:36:52 -05:00
Rapptz 3d03dbc451 Change internal role storage in Guild to a dict instead of a list.
This adds the following APIs:

* Guild.get_role

This removes the following APIs:

* Guild.role_hierarchy

To compensate for the removed APIs, Guild.roles is now a sorted list
based on hierarchy. The first element will always be the @everyone
role.

This speeds up access at the cost of some memory, theoretically.
2018-09-24 21:08:48 -04:00
Ben Mintz 184c4302c7 docs/mimgrating.rst: CPython 3.5.2 is not supported!
The minimum version supported by aiohttp is CPython 3.5.3, not 3.5.2.
Fixes #1344.
2018-06-21 07:44:02 -04:00
Rapptz f25091efe1 Drop support for Python 3.4 and make minimum version 3.5.2. 2018-06-10 18:10:00 -04:00
Rapptz 857e30c68e Add some documentation for the Game to Activity breaking change. 2018-03-06 01:21:25 -05:00
Rapptz 4fef6fc4b0 Fix minor typo in migrating documentation. 2018-01-22 17:34:46 -05:00
Tobotimus 3112e1c17e Add intersphinx 2018-01-06 17:23:59 -05:00
Rapptz 53b4890435 Add category support.
This adds:

* CategoryChannel, which represents a category
* Guild.by_category() which traverses the channels grouping by category
* Guild.categories to get a list of categories
* abc.GuildChannel.category to get the category a channel belongs to
* sync_permissions keyword argument to abc.GuildChannel.edit to sync
  permissions with a pre-existing or new category
* category keyword argument to abc.GuildChannel.edit to move a channel
  to a category
2017-09-13 09:44:36 -04:00
Nick 4db76c6c6b Switched places of user and reaction in wait_for example 2017-08-31 18:07:12 -04:00
Gorialis 80586cb081 Minor fixes in migrating doc 2017-08-16 07:09:06 -04:00
Rapptz 434d6dc347 Fix extraneous parentheses in Client.emojis render in migrating docs. 2017-08-12 18:41:21 -04:00
SinisterRectus 8acf3d01ce Remove GuildChannel.is_default 2017-08-08 17:31:09 -04:00
Rapptz e493f1f2f4 Remove Guild.create_invite too since it relies on a default channel. 2017-07-31 21:39:48 -04:00
Rapptz 3dc1195637 Remove Guild.default_channel
The concept no longer exists.
2017-07-31 21:32:12 -04:00
Rapptz c98443e9aa Fix wrong order in migrating docs. 2017-07-02 17:49:56 -04:00
Rapptz 51429f98e8 Fix typo in migrating page. 2017-06-29 20:25:40 -04:00
Rapptz c23ef9e8a4 [commands] Add __global_check_once to list of cog functions. 2017-06-20 23:55:17 -04:00
Rapptz 717f11d635 [commands] Add Bot.check_once for a global check that is called once.
There is a counterpart for this in cogs, called __global_check_once.
This allows for predicates that would filter a command globally that
do not necessarily require rechecking in the case of e.g. the help
command such as blocking users or blocking channels.
2017-06-20 23:41:13 -04:00
Rapptz 0f7c1e09b0 Fix mixed order in migrating docs. 2017-06-05 23:15:29 -04:00
Rapptz bef636e1e3 Fix mistake in migrating docs. 2017-06-02 16:51:58 -04:00
Rapptz d85e479be6 Minor fix in migrating page. 2017-05-31 15:28:54 -04:00
Rapptz 95451c35e7 Document Message.embeds and Message.attachments changes. 2017-05-31 01:57:18 -04:00
Rapptz 34815a43f4 Permissions.view_audit_logs -> Permissions.view_audit_log 2017-05-28 22:00:43 -04:00
Rapptz a47ded6e49 Don't expose Client.messages
Not entirely sure why it was exposed in the first place. Most uses with
it essentially boiled down to mis-usage when they meant to use the
/messages endpoint (via Client.logs_from or Messageable.history) or
complaining about the partial data woes that came from it.
2017-05-26 07:17:52 -04:00
Rapptz e1263a585a Mention User.avatar_url change in migration page. 2017-05-25 21:29:45 -04:00
Rapptz 1f1ac8f750 Mention on_member_ban event change. 2017-05-23 21:25:16 -04:00
Rapptz f588876587 Use Python3Lexer instead of PythonLexer for pygments. 2017-05-22 07:21:23 -04:00
Rapptz 8a49a3a74f Update migrating page with new extension information. 2017-05-19 21:56:16 -04:00
Rapptz 3cb680159e Add __unload to the special cog method list. 2017-05-17 00:57:21 -04:00
Rapptz 7a84661312 Rename Colour.to_tuple to Colour.to_rgb. 2017-05-15 03:40:27 -04:00
Rapptz d80e08c1c6 Fix all broken cross references in the migrating page... again. 2017-05-15 02:08:56 -04:00
Rapptz 2d465d9b3c Fix dead links in the migrating page. 2017-05-14 23:55:38 -04:00
Rapptz c45d18a6ea Add note about upgraded dependencies in the migrating page. 2017-05-14 17:59:17 -04:00
Rapptz de00573288 Fix some broken cross references in the migrating page. 2017-05-13 23:16:40 -04:00
Rapptz cacd49b039 Be more consistent with period placements. 2017-05-12 22:48:17 -04:00
Rapptz c6e1629011 Make images in the discord intro have consistent dimensions. 2017-05-12 22:45:27 -04:00
Rapptz a93145d1f0 Fix dead cross-reference links in the migrating page. 2017-05-12 21:01:50 -04:00
Rapptz b44bba6ee6 First pass at documentation reform. 2017-05-12 20:14:34 -04:00
Rapptz 72e84a1b47 Change all email/password pair examples to use token. 2016-04-08 22:02:38 -04:00
Rapptz 94d31834fc Change enumerators into enumerations to please Voltana. 2016-01-30 06:07:06 -05:00
Rapptz 8b1854e759 Add and remove some of the on_socket_* events.
on_socket_raw_receive and on_socket_raw_send were added back in an odd
way. The rest of them such as on_socket_closed, on_socket_opened, and
on_socket_receive were removed.
2016-01-25 01:55:31 -05:00
Rapptz 855fa7e553 Documentation fixes for Permissions related code. 2016-01-14 12:24:59 -05:00
Rapptz a1a47c6f38 Document the breaking change with the new dictionary storage change.
Since the only things dict views support are iteration we should
advise people who want the old behaviour to change it to a list.
2016-01-08 14:04:58 -05:00
Rapptz 6d5175ad9a Document how Client.run should be the last function to call. 2016-01-08 13:31:03 -05:00
Rapptz e88bc28236 Documentation fixes to quiet Sphinx warnings. 2016-01-07 00:21:00 -05:00
Rapptz 5a1d7a2d94 Change permissions to remove the can_ prefix. 2016-01-03 21:45:28 -05:00
Rapptz 18cda5c3ae Document more breaking changes in migrating file. 2016-01-03 17:02:24 -05:00