Commit Graph

63 Commits

Author SHA1 Message Date
abalabahaha
34323c869e Gateway v6 support 2016-09-18 09:26:29 +09:00
abalabahaha
d96f5d1e30 Userbots on gateway v5 2016-09-18 08:50:32 +09:00
Brian Tanner
fdfd41dd8c add .toObject() method to structures (#522)
* add .toObject() method to structures

* add compiled PMChannel change from last commit

* uncomment members in VoiceChannel toObject method
2016-08-16 09:53:07 -07:00
Zman840
c0ef815f9d added emoji support (#503) 2016-08-06 15:29:17 -07:00
abalabahaha
952cfc0456 Experimental active ratelimits (adapted from Eris) 2016-07-29 05:37:43 +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
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
627bbaf4ec Fix server.afkTimout being undefined (#399) (#402) 2016-06-02 09:26:50 -07:00
abalabahaha
05def5b3f2 voiceSwitch, update user voiceChannel earlier 2016-06-01 15:57:05 -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
bd15cc68ce createdAt 2016-05-31 18:52:41 -07:00
abalabahaha
e6054c6ace Always fire messageUpdated, reset on login (#294,#295) 2016-05-31 10:24:19 -07:00
abalabahaha
81cdb09363 Null roles fix 2016-05-13 20:14:01 -07:00
abalabahaha
e7882a38ee Testing alternate role resolving 2016-05-12 17:30:44 -07:00
abalabahaha
0e5a1d2df7 Some undefined checking 2016-05-11 16:42:18 -07:00
abalabahaha
42fd07c5e7 Whoops 2016-05-08 00:55:48 -07:00
abalabahaha
68c1e122c0 Revise member property handling 2016-05-08 00:21:36 -07:00
abalabahaha
2eca16dee6 Consistently rename selfMute/selfDeaf 2016-05-04 19:55:19 -07:00
abalabahaha
249b6f919a Null unset nicks 2016-04-29 19:37:15 -07:00
abalabahaha
b47540d6eb Testing nickname support 2016-04-29 19:25:06 -07:00
abalabahaha
538df5f76b memberMap on guild chunks, fire voice channel changes (fix #177) 2016-03-06 04:51:21 -08:00
abalabahaha
0ec5d3e8d7 Empty array instead of undefined 2016-02-20 19:30:50 -08:00
abalabahaha
47ecc934f1 Attempting forceFetchUser callback 2016-02-20 18:33:36 -08:00
hydrabolt
315ae22a7f potential server_member_update bugfix? 2016-02-13 21:04:47 +00:00
hydrabolt
7144ead048 docs 6.66% 2016-02-13 18:21:59 +00:00
abalabahaha
b7c1b6ebe6 Simulate channel structure if user's voice channel was not found 2016-02-01 17:26:29 -08:00
abalabahaha
cd25848bdc voiceStateUpdate stored per-server, some docs 2016-01-30 14:11:21 -08:00
abalabahaha
6af71bf639 The beginnings of the voiceUserStateChange event 2016-01-29 17:46:46 -08:00
abalabahaha
ee2172c1d5 memberHasRole, membersWithRole 2016-01-29 17:02:40 -08:00
abalabahaha
79039f08a1 Fixing server updates 2016-01-25 00:34:16 -08:00
abalabahaha
2c17eaed02 Fix login, clone objects when firing x-Updated events 2016-01-24 16:41:35 -08:00
abalabahaha
68435f0619 Handle unavailable guild, fix default getChannelLogs limit 2016-01-18 17:46:15 -08:00
abalabahaha
94f067cc51 Check if parts of server data exist 2016-01-16 17:09:25 -08:00
abalabahaha
404829a19d Change gameID (Deprecated) to game 2016-01-04 20:46:28 -08:00
Amish Shah
8d0fc8e0a6 Resilience to abusers of the API
For some reason there's a way to join text channels via the Discord API but not the Discord Client, so this commit
prevents the Client from crashing by checking to see if the channels are voice channels.
2015-12-26 18:32:46 +00:00
Amish Shah
8e16abee96 Fixed server.detailsOf(user)
Now points to correct function
2015-12-26 18:16:42 +00:00
Amish Shah
3b7c5aa96a Rename voiceconnection.speaking to voiceconnection.memberd 2015-12-26 18:05:31 +00:00
Amish Shah
0113202c2f Fixed voice_connection.stopPlaying
Now unpipes before destroying
2015-12-26 17:52:20 +00:00
Amish Shah
9d97dfc95a Voice States in READY packet now processed
Now there is full watching and coverage of voice states
2015-12-26 15:54:45 +00:00
Amish Shah
9c0e20947c Added websocket voice state watching
Now emits voiceJoin(user, voice_channel) or voiceLeave(user, voice_channel) and adds/removes from voice_channel.speaking when a user joins or leaves a voice channel.
2015-12-26 15:38:53 +00:00
qeled
a369ef2788 Improve Cache class performance
Use hashmap instead of array for caching by discriminator

Optimize `get` method by using `for` loop instead of `forEach`
and returning hashmap cache for queries by discriminator
2015-12-10 02:26:30 +03:00
Amish Shah
ff7adf1cf7 basic speed improvement - eats more memory 2015-12-06 20:53:23 +00:00
Amish Shah
1d8905d25a Finalised server documentation
I think
2015-12-05 18:17:01 +00:00
abalabahaha
e92e087aeb Fixed stupid weird code 2015-12-05 09:59:25 -08:00
abalabahaha
559ed5f76f More shortcuts 2015-12-05 09:43:11 -08:00
Amish Shah
eb500ecd24 Added startTyping stopTyping and createChannel 2015-12-05 17:21:32 +00:00
Amish Shah
10442e5634 Added getLogs 2015-12-05 17:12:15 +00:00
Amish Shah
212c672c2f Added sendFile and server.generalChannel 2015-12-05 17:10:48 +00:00
Amish Shah
05409ccc21 Finished server shortcuts
I think
2015-12-05 17:08:56 +00:00