156 Commits

Author SHA1 Message Date
Rapptz
148816c4e8 Temporarily add created channels to cache.
This should fix issues when doing a `abc.GuildChannel.edit` immediately
afterwards and then when the corresponding CHANNEL_CREATE comes in the
channel instance should hopefully be overwritten by the authoritative
figure, the WebSocket.
2017-09-23 18:54:12 -04:00
Rapptz
95c28f08e4 Fix sorting for channels. 2017-09-21 00:11:36 -04:00
Jake
3e00e7fe8a [guild] use a defaultdict in by_category 2017-09-20 21:08:46 -07:00
Rapptz
7b2e06c263 Fix error when creating guild channels. 2017-09-13 18:47:40 -04:00
Rapptz
7df8897e3d Add Guild.create_category.
An alias, Guild.create_category_channel is provided.
2017-09-13 17:01:42 -04: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
Rapptz
3cd1fdc1eb Document new features for guilds. 2017-09-12 04:21:15 -04:00
Rapptz
1367877d36 Fix crashing for now when a category is created.
A full implementation will come later.
2017-09-08 21:30:25 -04:00
Rapptz
37b0fdb898 Add webhook support.
Allows for usage of either `requests` and `aiohttp` when used in
"Standalone" mode.

Fixes #704
2017-08-21 01:57:07 -04:00
Rapptz
13c6a0a17a Add support for Guild.system_channel 2017-08-17 18:14:52 -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
khazhyk
2c4876f2e7 add Guild.icon_url_as
Guild icons can also be up to 1024px, jpg, png, or webp
2017-07-25 06:09:41 -04:00
Rapptz
06c99533de Fix passing None to afk_channel in Guild.edit. 2017-06-19 04:22:42 -04:00
Rapptz
a8474ed6d3 Document that exceptions happen in Guild.audit_logs. 2017-05-25 20:16:03 -04:00
Rapptz
f588876587 Use Python3Lexer instead of PythonLexer for pygments. 2017-05-22 07:21:23 -04:00
Rapptz
f4e01b3a92 Make supported operations stand out more than attributes. 2017-05-20 02:08:34 -04:00
Rapptz
f73eb087c9 Use describe instead of tables for supported operations. 2017-05-13 18:48:14 -04:00
Rapptz
b44bba6ee6 First pass at documentation reform. 2017-05-12 20:14:34 -04:00
Rapptz
8081a654e8 Remove Guild.change_vanity_invite in favour of Guild.edit 2017-05-09 17:49:05 -04:00
Rapptz
a0fc1402d7 Rename GuildRegion to VoiceRegion.
This naming makes more sense since voice regions are not a guild
exclusive concept.
2017-05-09 13:42:35 -04:00
Rapptz
dff6bcc745 Add support for audit log reasons.
Most routes now have a 'reason' keyword argument.
2017-05-07 03:08:06 -04:00
Rapptz
ba2dad2093 Add support for setting and retrieving guild vanity invites. 2017-04-30 07:17:00 -04:00
Twentysix
86b9099f3a Changed audit_log to audit_logs in documentation 2017-04-30 12:56:58 +02:00
Rapptz
c54a6a927d Implement audit logs. 2017-04-30 02:58:27 -04:00
Rapptz
65bd510df6 Add Guild.voice_client shortcut. 2017-04-18 04:07:05 -04:00
Rapptz
728fae9285 Add Guild.explicit_content_filter. 2017-04-12 20:18:28 -04:00
Rapptz
9fcbe5c678 Sort Guild.text_channels and Guild.voice_channels in UI order. 2017-03-23 19:34:36 -04:00
Rapptz
9a1215e13b Add support for message acking. 2017-02-27 23:29:52 -05:00
Rapptz
b2ffeac297 Make Guild.large a property instead of an attribute. 2017-02-24 17:51:27 -05:00
Rapptz
6516932e67 Fix Guild.bans to return a BanEntry object. 2017-02-16 16:13:20 -05:00
Rapptz
3504de4635 Fix more places where server is used instead of guild in docstrings. 2017-02-08 22:51:40 -05:00
Rapptz
274e6af0dd Fix support for instant invites. 2017-02-08 22:47:52 -05:00
Rapptz
3a24cda927 Faster implementation of Guild.default_channel. 2017-01-29 21:04:42 -05:00
Rapptz
81baafa1e2 Change Role.is_everyone to Role.is_default. 2017-01-29 20:59:36 -05:00
Rapptz
ff9f5749e1 Update copyright year to 2017. 2017-01-20 23:19:19 -05:00
Rapptz
f465f88d81 Reimplement Guild.me property without patching it in. 2017-01-18 19:54:47 -05:00
Rapptz
ced617e786 Use the improved role creation endpoint for making roles. 2017-01-13 01:30:09 -05:00
Rapptz
b09f25293b Use CDN URL for Guild.icon_url. 2017-01-09 03:43:51 -05:00
Rapptz
5e201be792 Fix typo in Guild.invites 2017-01-09 03:13:57 -05:00
Rapptz
3780943d0a Add Guild.create_text_channel and Guild.create_voice_channel. 2017-01-08 17:09:56 -05:00
Rapptz
d13df30e2a Add ability to edit guild invite splashes. 2017-01-08 07:24:56 -05:00
Rapptz
aae8b783e9 VoiceChannel.voice_members is now computed when needed. 2017-01-08 04:31:33 -05:00
Rapptz
4bd8382e06 Fix bug that caused Guild instances to be in VoiceChannel.voice_members 2017-01-08 03:46:43 -05:00
Rapptz
d93067ca0f Add Guild.chunked property. 2017-01-08 01:28:15 -05:00
Rapptz
20041ea756 Implement AutoShardedClient for transparent sharding.
This allows people to run their >2,500 guild bot in a single process
without the headaches of IPC/RPC or much difficulty.
2017-01-07 23:19:39 -05:00
Rapptz
c863d93f69 Fix bug that made member roles go missing. 2017-01-03 20:17:58 -05:00
Rapptz
98b981848d Move message creation to a factory method inside ConnectionState. 2017-01-03 09:52:10 -05:00
Rapptz
dceba9d962 Add useful repr to all data classes. 2017-01-03 09:52:06 -05:00
Rapptz
9c000c5a72 Fix documentation to work. 2017-01-03 09:52:02 -05:00