Rapptz
aa45bce212
Documentation fixes for role related functions.
2016-05-23 15:03:22 -04:00
Rapptz
8f4816ddae
Close voice connections before closing the websocket.
2016-05-22 00:58:27 -04:00
Harmon
c2e7a68105
Fix purge_from to use LogsFromIterator.create ( #219 )
2016-05-20 21:15:43 -04:00
Rapptz
fe1b5b2941
Add support for voice channel user limits.
2016-05-20 18:11:58 -04:00
Khazhismel Kumykov
492c9afffb
logs_from improvements for after param.
...
- Properly support 'after' alone
- Properly support both 'before' and 'after'
- Add optional 'reverse' parameter to sort messages oldest->newest to
1) provide a sorted result set for 'after'
2) give flexibility when using both 'before' and 'after'
2016-05-20 18:11:57 -04:00
Khazhismel Kumykov
8e5347f4ed
Allow datetime in limit parameters for logs_from.
...
Add time_snowflake to convert a datetime to a "snowflake".
2016-05-20 18:11:56 -04:00
Khazhismel Kumykov
7bdddc37a0
Retry send_file on 502.
...
Rename _rate_limit_helper to _retry_helper
2016-05-20 18:11:56 -04:00
Khazhismel Kumykov
a1b5cefc8b
Add move_role
...
move_role will only send changed roles.
discord will accept trying to move to position 0, or trying to move the
everyone role. It will result in unexpected changes, so we prohibit it.
2016-05-20 18:11:55 -04:00
Rapptz
92175ea152
Add example for Client.purge_from
2016-05-12 09:05:51 -04:00
Twentysix
132873d159
Add clarification for purge_from and delete_messages
...
Endpoint not usable by non-bot accounts
2016-05-11 17:13:34 +02:00
Rapptz
b8eab5f656
Change second run_until_complete to not be empty.
...
This should stop the infinite loops in some cases.
2016-05-10 20:21:08 -04:00
Rapptz
0c8d5ee863
Force encoding of text retrieval functions to use utf-8.
...
Closes #207
2016-05-10 19:52:34 -04:00
Rapptz
1e175f2ab3
Fix issue with Client.purge_from not deleting the 101st message.
2016-05-10 19:39:58 -04:00
Rapptz
1f86a9b795
Add Client.purge_from as a high level interface around bulk delete.
2016-05-10 08:43:09 -04:00
Rapptz
1b601097d2
Add Client.delete_messages for bulk delete.
2016-05-10 07:52:22 -04:00
Rapptz
701720a0f8
Add a TimeoutError if VoiceClient.connect fails.
2016-05-06 13:30:44 -04:00
Rapptz
d9c780b8a8
Working multi-server voice support.
2016-05-01 20:54:13 -04:00
Khazhismel Kumykov
7bae6dc5bc
Fix changing own nickname without manage_nicknames
...
Use @me/nick rather than id when changing own nickname - this only
requires change_nicknames rather than manage.
2016-04-30 20:34:02 -04:00
Rapptz
07adb1d5e9
Add ability to change nicknames via Client.change_nickname
2016-04-29 07:18:01 -04:00
Rapptz
c1b5a52823
Refactor voice websocket into gateway.py
2016-04-27 18:36:24 -04:00
Rapptz
1c623ccf11
Begin working on gateway v4 support.
...
Bump websockets requirement to v3.1
Should be squashed...
2016-04-27 18:36:13 -04:00
Daniel
5a2b8e2ce6
Properly close session if client failed to start
...
`keep_alive` was not defined until it was created in `received_message`, `ws` is `None` until its actually connected, which doesn't always happen. If an error happens before things start up properly, the client should now clean its objects up (fixes `unclosed client session` warning).
2016-04-22 22:40:25 -04:00
Rapptz
8d7dd79673
Fix deadlock issue when joining large guilds.
2016-04-15 23:27:23 -04:00
Rapptz
03862a7145
Add a None check when setting status in Client.change_status.
2016-04-14 20:38:13 -04:00
Rapptz
7adf761a35
Retry if send_message or edit_message encounter a 502.
2016-04-14 13:16:27 -04:00
Rapptz
53bc9a3007
Yield from parser coroutine instead of making it a task.
...
This should give us a bit better sequential message processing.
2016-04-12 18:18:03 -04:00
Rapptz
5c407df2b7
Fix Client.login documentation to showcase email/password login.
2016-04-11 14:30:44 -04:00
Rapptz
28b3d375e9
Check the right status code for improper token being passed.
2016-04-11 14:25:20 -04:00
Rapptz
29d3f5a886
Allow Client.edit_profile to work with bot accounts.
2016-04-09 21:42:26 -04:00
Rapptz
72e84a1b47
Change all email/password pair examples to use token.
2016-04-08 22:02:38 -04:00
Rapptz
93edf88ee4
Change login, start and run to be variadic.
2016-04-08 22:00:06 -04:00
Rapptz
222a89a653
Fix unclosed response and document token login a bit better.
2016-04-08 21:16:30 -04:00
Max Gurela
7f340f88ad
Add support for token login (for bots)
2016-04-08 21:11:22 -04:00
Rapptz
7dcf0c059c
Clarify that Client.close is a coroutine.
2016-03-29 20:44:33 -04:00
Rapptz
78e2db1863
Add support for aiohttp connectors.
...
Fixes #98 .
2016-03-07 17:54:51 -05:00
Rapptz
6694df268c
Fix crashing when an unhandled event occurs.
2016-03-06 16:26:58 -05:00
Rapptz
425bd2c091
Move chunking logic back into ConnectionState.
...
This allows for a nicer design when dealing with parsers that could
end up being coroutines.
2016-03-06 05:24:18 -05:00
Nelson Minar
d4fa60e1cf
Ensure the auth cache file is not world readable.
2016-03-02 23:26:04 -05:00
Rapptz
489363f5f8
Switch URLs from Client.delete_server and Client.leave_server.
2016-02-23 19:01:04 -05:00
Rapptz
87f7fced24
Add Client.delete_server.
2016-02-23 18:59:44 -05:00
Rapptz
89de0e7e9f
Client.send_file can now send content along with the message.
...
There is a breaking change here. We have to change the filename
parameter to be a keyword only argument so there are fewer errors
and surprises.
2016-02-18 19:41:48 -05:00
Rapptz
3ec99a7cb8
Fix NameError issue in Client.send_file.
2016-02-17 21:24:40 -05:00
Rapptz
ff14fa0fe8
Switch to using ClientSession objects for aiohttp v0.21
2016-02-15 19:49:30 -05:00
Rapptz
0b80575ae3
Fix case when no chunks are necessary.
2016-02-14 21:51:49 -05:00
Rapptz
4584c68f0c
Remove request_offline option.
2016-02-14 21:49:34 -05:00
Rapptz
4768d950c5
Offline members are now added by default automatically.
...
This commit adds support for GUILD_MEMBERS_CHUNK which had to be done
due to forced large_threshold requirements in the library.
2016-02-14 19:24:26 -05:00
Rapptz
f9a3979008
Update member references when status changes.
2016-01-30 04:36:32 -05:00
Rapptz
e2c9cb7f8e
Force content-type for file uploads.
2016-01-29 00:25:54 -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
e7931eccc8
Support changing owners in Client.edit_server.
2016-01-22 18:12:09 -05:00