Commit Graph

1185 Commits

Author SHA1 Message Date
abalabahaha
41dab17ec0 Fix deleteMessage ratelimiting 2016-07-29 06:58:22 +09:00
abalabahaha
d956780d18 Fix incorrect reference 2016-07-29 06:30:07 +09:00
abalabahaha
b95058399e Enable autoReconnect by default 2016-07-29 05:56:50 +09:00
abalabahaha
952cfc0456 Experimental active ratelimits (adapted from Eris) 2016-07-29 05:37:43 +09:00
abalabahaha
dc939c48ee Fix using deleteChannel on private channels 2016-07-28 04:36:04 +09:00
Gus Caplan
babf550459 Add tonicdev support (#479)
* example file for tonicdev

* add tonicdev to the package.json

* meh
2016-07-28 04:14:58 +09:00
Hugo Holmqvist
a102490b08 Voice event fixes (#482)
* Fix false voiceSwitch event

* Check channelIDs instead of names
2016-07-28 03:12:33 +08:00
abalabahaha
c63c39eb1f Bump deps 2016-07-24 09:18:14 +09:00
Brian Tanner
422fffdbfb a lot of changes to documentation (#465)
* document paused property

* node twitch.tv urls in setStreaming, added note on autoReconnect in troubleshooting

* Fix improper formatting in Cache.get (#1)

* Fix grammar in unpinMessage

* Enhance troubleshooting (#2)

* Enhance troubleshooting

* getChannelLogs can take resolvables

* Include variables

* Add shortcuts

* Add references to shortcuts

* Add shortcuts for User

* Add references for User

* _
2016-07-14 09:05:54 +08:00
Jesse Bryan
45d61f24db Removed Client#setChannelNameAndTopic and any relevant references (fixed). (#464)
* Removed undeed functions relating to channelName and channelTopic.

* Compiled the last commit.
2016-07-14 09:05:44 +08:00
Jacob
f49f1ab3c8 fix voice state updates (#461)
* fix voice state updates

* use .has for backwards compatability and consistency
2016-07-14 08:31:19 +08:00
Manuel Kraus
cd2642c293 Fix updateChannel crashing (#456) 2016-07-12 03:13:19 +08:00
Jesse Bryan
7ae7a9aa34 Added a voiceSpeaking event, fired when a user in a voiceChannel starts or stops speaking. (#452)
* Added an event for the voice speaking packet.

* Updated the docs to reflect the voiceSpeaking event addition.

* Fixed some spacing issues in the VoiceConnection.js file.

* Moved the speaking boolean to the User object.
2016-07-12 03:12:27 +08:00
abalabahaha
620d8cbf15 Fix close event reference 2016-06-29 14:25:23 +09:00
abalabahaha
c8ba6b5265 Add WS close code errors 2016-06-29 14:11:46 +09:00
Évelyne Lachance
1577075e52 Cache now returns null when using get(cacheID) with invalid ID (#441)
* Cache now returns `null` when using get(cacheID) where the ID is invalid.

* Documented `get(id)`

* Adjusted version in conf.py to 8.0.0
2016-06-26 13:30:24 +09:00
Manuel Kraus
d7026f80a4 Cache.remove fix (#437) 2016-06-22 01:36:32 +09:00
Manuel Kraus
ba51df918c Add pinning (#434)
Added methods:
pinMessage()
unpinMessage()
getPinnedMessages()

Added params for getChannelLogs:
around
2016-06-18 11:21:52 +09:00
Brian Tanner
9c9768f772 fix Endpoints bug created in constants pr (#432) 2016-06-18 06:42:00 +09:00
Brian Tanner
fe3f6c7d20 Change the way constants are exported (#431) 2016-06-18 02:24:50 +09:00
Manuel Kraus
0e4612d7ab Add client.getMessage() (#428)
* Add client.getMessage

* Add shortcuts

* build it..

* Add missing ~ in note docs

* ............
2016-06-16 07:31:02 +09:00
Manuel Kraus
0f4566dd23 Add notes (#423) 2016-06-15 13:04:47 +09:00
Ian Mitchell
7f864578e0 Corrected PM Message Documentation (#424) 2016-06-15 13:04:40 +09:00
Brian Tanner
4e8ac47f27 fix econnreset in playRawStream (#427) 2016-06-14 13:20:26 +09:00
abalabahaha
644061e881 Unminify lib files 2016-06-13 16:00:43 -07:00
Brian Tanner
ea89b7f783 small sendMessage doc fix (#426) 2016-06-14 07:55:39 +09:00
Brian Tanner
d9fa561dd9 fix presence updates not emitting game changes, closes #420 (#421) 2016-06-10 11:34:28 +09:00
abalabahaha
2cd1104d3d 8.0.0 8.0.0 2016-06-09 11:41:04 +09:00
abalabahaha
5133096a12 Upgrade deps 2016-06-09 11:34:13 +09:00
Programmix
02f39e00bf Handle incomplete websocket message (#413)
Sometimes the VOICE_SERVER_UPDATE packet will contain a valid guild_id
but no token/endpoint.
2016-06-06 19:27:53 -07:00
Programmix
e59dd9b12a Use pre-parsed websocket messages (fixes #407) (#412) 2016-06-05 13:53:57 -07:00
Bruno Moreira
1672465768 Add destroy to docs (#411)
Just found this missing function.
2016-06-05 11:03:36 -07:00
abalabahaha
293f416e15 Actually return something 2016-06-03 19:16:09 -07:00
abalabahaha
6cd0561014 Possibly fix #404, #405, #409 2016-06-03 18:36:17 -07:00
Meishu
2bd7d9dc24 Fix misnamed variable in setChannelTopic (#403) 2016-06-03 18:31:34 -07:00
Brian Tanner
2ac679c169 unset game if empty string is passed (#408) 2016-06-03 12:16:51 -07:00
Manuel Kraus
627bbaf4ec Fix server.afkTimout being undefined (#399) (#402) 2016-06-02 09:26:50 -07:00
Brussell
636a095377 Add disableEveryone option (#400)
* Added support for new game objects

bot.setStreaming(name, url, type, callback); added
logic for Internal setStatus updated to check if string or object

* Add disableEveryone option

* forgot to compile

oh well, it can be squash merged
2016-06-01 21:35:32 -07:00
abalabahaha
c88feaa554 Add voiceSwitch to docs 2016-06-01 15:58:08 -07:00
abalabahaha
05def5b3f2 voiceSwitch, update user voiceChannel earlier 2016-06-01 15:57:05 -07:00
abalabahaha
0128a88e25 Don't construct messages from embeds 2016-06-01 15:42:35 -07:00
abalabahaha
1c8e773700 More if statements for bad state tracking 2016-06-01 15:36:27 -07:00
abalabahaha
afa2f33dfd Compensate for bad state tracking 2016-06-01 15:30:40 -07:00
abalabahaha
cf413bd472 Check for valid author 2016-06-01 13:11:04 -07:00
Programmix
883743e137 Update IDENTIFY properties (#397)
Programmix needs to double check his code before committing
2016-05-31 20:00:04 -07:00
abalabahaha
bd15cc68ce createdAt 2016-05-31 18:52:41 -07:00
Brian Tanner
d913d04f44 add docs for shardId, shardCount client parameters (#394) 2016-05-31 17:35:35 -07:00
Brian Tanner
bf89d678d8 add administrator constant doc (#396) 2016-05-31 17:35:29 -07:00
abalabahaha
f8bf945f9d serverChannel.permissionsOf() can take a role 2016-05-31 10:59:05 -07:00
abalabahaha
e6054c6ace Always fire messageUpdated, reset on login (#294,#295) 2016-05-31 10:24:19 -07:00