Commit Graph
41 Commits
Author SHA1 Message Date
khazhykandRapptz b1117262da [commands] Run global checks in help formatter.
Help formatter was not checking global bot-level checks, resulting in
showing commands a user did not have permission for with
show_check_failure disabled.
2016-12-16 14:39:25 -05:00
khazhykandRapptz c8fd8a9e1a Fix crash on duplicate or out of order reactions.
Eventual consistency ftw
2016-11-30 16:47:00 -05:00
khazhyk 8bd242f00b Fix crash on reaction remove.
Discord can sometimes send integer 0 as the emoji id instead of
null to signify a non-custom emoji, which was causing a crash due
to a 'is not None' check assuming the reaction was for an emoji
with id 0. Probably a discord bug, but preferable to handle here
rather than crash users.
2016-11-05 21:46:07 -07:00
khazhykandRapptz 4d87b2f817 Inject full Emoji to Reaction if we have it.
Reaction objects with custom Emoji are partial. If we know of this Emoji
(can find it on this client) then inject it. Otherwise, leave it as a
hollow Emoji. We can still react with a hollow Emoji, but can't get other
metadata about it.
2016-11-03 04:39:45 -04:00
khazhyk c4acc0e1a1 Add support for reactions.
Reactions can be be standard emojis, or custom server emojis.

Adds
 - add/remove_reaction
 - get_reaction_users
 - Messages have new field reactions
 - new events - message_reaction_add, message_reaction_remove
 - new permission - add_reactions
2016-10-27 21:36:32 -07:00
khazhyk 158ac6bb50 Add around parameter to LogsFromIterator. 2016-10-16 18:10:49 -07:00
khazhyk e2667a6f66 Refactor LogsFromIterator 2016-10-16 17:25:00 -07:00
khazhyk 98d8c855d8 Fix typo in change_presence validation message 2016-10-15 15:54:50 -07:00
Khazhismel adf74eef76 Update Client documentation. 2016-10-02 14:06:49 -07:00
Khazhismel 6344504dfc Emoji.url uses api url. 2016-08-06 16:54:07 -07:00
Khazhismel 14c8aed1a3 Add emoji url property 2016-08-02 17:37:31 -07:00
Khazhismel 504fbaafd5 Clean up Emoji documentation. 2016-08-01 21:05:51 -07:00
Khazhismel c72c23278d [commands] Add custom emoji converter. 2016-07-31 22:39:45 -07:00
Khazhismel c5a989eeb2 Add custom emoji support. 2016-07-31 22:39:43 -07:00
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