Commit Graph

131 Commits

Author SHA1 Message Date
hydrabolt
7144ead048 docs 6.66% 2016-02-13 18:21:59 +00:00
hydrabolt
bd187540d3 4.3% coverage 2016-02-13 15:11:27 +00:00
abalabahaha
9fc5a752f8 colorAsHex should return hex (fixes #188) 2016-02-11 10:30:06 -08: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
46807bf1c1 Fix unduplicated mentions 2016-01-30 13:16:18 -08:00
abalabahaha
7fb39b6dc0 Fixed isMentioned 2016-01-30 01:28:58 -08:00
abalabahaha
e3173d1561 In-order + duplicate mentions, cleanContent in Messages 2016-01-29 22:05:01 -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
meew0
4184e51ec3 Compare game objects before comparing their names
See also http://git.io/vuR7p
2016-01-05 20:33:55 +01:00
abalabahaha
404829a19d Change gameID (Deprecated) to game 2016-01-04 20:46:28 -08:00
abalabahaha
2a00064646 Validate invite if possible 2016-01-03 11:14:17 -08:00
abalabahaha
718f0b9543 Rebuilt lib for dev and getInvite 2016-01-02 18:24:55 -08:00
Amish Shah
2000b62b36 fixed references to update items 2016-01-01 18:27:08 +00: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
Amish Shah
7b2f4e3357 Added Cache 2015-12-26 15:12:58 +00:00
Amish Shah
c9c1b19968 Fixed message.isMentioned 2015-12-12 21:37:34 +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
abalabahaha
2157e0b682 Saddening typo 2015-12-05 16:56:53 -08:00
abalabahaha
50646503cd Merge remote-tracking branch 'upstream/indev' into indev 2015-12-05 10:31:29 -08:00
abalabahaha
ccc794229e setChannelPosition 2015-12-05 10:29:12 -08:00
Amish Shah
1d8905d25a Finalised server documentation
I think
2015-12-05 18:17:01 +00:00
abalabahaha
a89938ed01 setChannelTopic, not setTopic 2015-12-05 10:04:00 -08: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
Amish Shah
780565ff68 Added shortcuts to user and server classes
User.addTo User.removeFrom Server.leave/delete Server.createInvite Server.createRole
2015-12-05 17:03:05 +00:00
Amish Shah
5a971ba097 Added role shortcuts and to user also 2015-12-05 16:57:58 +00:00
Amish Shah
f95822dcb7 Added message.edit, textchannel.send, textchannel.sendTTS and pmchannel.send, pmchannel.sendTTS 2015-12-05 16:48:09 +00:00
Amish Shah
e01b4eb114 v5.1.0 finalised bug fixes 2015-12-04 21:07:15 +00:00
Simon Schick
faa744b1e3 Use import/export since we are using babel, removed unused imports 2015-11-28 17:57:22 +01:00
abalabahaha
c9497a0f75 Emit -ed and fixed presence vs. userUpdated check 2015-11-22 17:15:49 -08:00
hydrabolt
65698cf525 Added new functions
setStatusIdle() - aliases setStatusAway
setStatusOnline() - aliases setStatusActive and setStatusHere

setPlayingGame() - uses GameID resolvable
2015-11-21 14:55:15 +00:00
abalabahaha
0ba7a1796e msg.sender is an alias to msg.author 2015-11-20 17:17:25 -08:00
hydrabolt
979909a570 Added message docs 2015-11-20 20:54:59 +00:00
hydrabolt
19fb8e6dfd Finished channels 2015-11-20 20:44:09 +00:00