Commit Graph
27 Commits
Author SHA1 Message Date
Khazhismel KumykovandRapptz 33a69681fc [commands] Dispatch command_error on command exec error.
Provide fallback on_command_error - will only fire if no cog handlers and
no local handler.
Propagate exceptions in checks and argument parsing to bot.
2016-06-04 21:22:10 -04:00
Khazhismel KumykovandRapptz 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 KumykovandRapptz 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 KumykovandRapptz 7bdddc37a0 Retry send_file on 502.
Rename _rate_limit_helper to _retry_helper
2016-05-20 18:11:56 -04:00
Khazhismel KumykovandRapptz 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
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
Khazhismel Kumykov 29b01f20ba Fix Member.display_name returning None
If Member.nick was None, getattr would happily return None, not the
default value.
2016-04-29 15:13:15 -04:00
Khazhismel Kumykov a2a5dc5997 Add optional server parameter to utils.oauth_url 2016-04-15 21:04:33 -04:00
Khazhismel 84f1342b85 Fix chunk requests not actually being batched. 2016-04-11 11:53:54 -04:00
Khazhismel Kumykov 9f722731dd Fix typo in Role.created_at 2016-04-09 02:33:09 -04:00
Khazhismel Kumykov 160cbc81e7 Clarify channel-specific permissions documentation.
Manage Roles and Manage Channels is renamed to "Manage Permissions" and
"Manage Channel" in the discord UI, clarify which fields in the Permission
object those map to.
2016-04-05 14:30:04 -04:00
Khazhismel Kumykov 0e91ef79ef Fix handling of unavailable servers in READY 2016-04-04 23:45:05 -04:00
Khazhismel Kumykov 5f776f369d Add default avatar property to User. 2016-03-31 14:38:03 -04:00
Khazhismel KumykovandRapptz f1736bc08f Move ffmpeg process cleanup to player thread 2016-03-25 18:32:02 -04:00
Khazhismel fc2127789a Support ytsearch and playlists in youtube_dl_player 2016-03-09 21:19:12 -05:00
KhazhismelandRapptz 612aa4d107 Add util method to extract creation date from discord ids 2016-03-06 03:40:16 -05:00
Khazhismel KumykovandRapptz ef57873f80 Clean up zombies
self.process.communicate(timeout=0.100) will block

zombies probably would be cleaned up anyways but in a non deterministic fashion by the garage collector
2016-03-02 23:25:20 -05:00
Khazhismel bbe6455eb9 Guild member add will include deaf and mute now, do not provide default values 2016-01-12 11:49:22 -05:00
Khazhismel 000e7e57ea Change member constructor to not rely on order of json data object 2016-01-12 11:45:59 -05:00
Khazhismel ac3e583b05 Add missing argument in _rate_limit_helper 2015-12-26 17:01:35 -05:00
Khazhismel 0aa46e6def Add game data class, replace game_id. 2015-12-23 21:28:18 -05:00
Khazhismel ec23434162 Mentions are now <@id> *only* - remove mentions array on send and edit message 2015-12-23 20:59:41 -05:00
Khazhismel e8a06b7ee9 Insert options before pipe:1 in ffmpeg player, otherwise they are ignored 2015-12-23 18:00:44 -05:00
Khazhismel bb433990e8 None author param in wait_for_message allows any author 2015-12-22 03:51:45 -05:00
Khazhismel 0176517453 Provide server/channel id/name as Object if client not joined to server. 2015-11-29 21:58:17 -05:00
KhazhismelandRapptz 52d3457443 Add send_typing command to allow sending typing updates. 2015-11-19 23:16:47 -05:00
KhazhismelandRapptz fcc540ec44 Add before and after params to logs_from. 2015-11-16 19:06:14 -05:00