Commit Graph

63 Commits

Author SHA1 Message Date
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
abalabahaha
224cca1e31 updateRole and deleteInvite 2015-11-19 09:40:15 -08:00
hydrabolt
c74b5dbd3f Added startTyping stopTyping and added serverchannel.mention() 2015-11-19 16:33:25 +00:00
hydrabolt
0fdcf827d0 serverchannel.toString() now returns mentionable 2015-11-19 16:18:02 +00:00
hydrabolt
881615f15e Fixed isMentioned 2015-11-18 17:28:53 +00:00
hydrabolt
6bca494ddc Added msg.isMentioned 2015-11-18 17:24:15 +00:00
hydrabolt
c342ca4116 Added joinServer 2015-11-18 17:13:06 +00:00
abalabahaha
cfc1424dde Merge remote-tracking branch 'upstream/rewrite' into rewrite 2015-11-15 12:47:43 -08:00
abalabahaha
7af104a892 sendTyping, setStatus, and channel position 2015-11-15 12:46:52 -08:00
hydrabolt
373358cf49 Fixed update to updateMessage 2015-11-15 14:32:59 +00:00
hydrabolt
a5581382b9 Added message deregs 2015-11-15 14:31:03 +00:00
hydrabolt
8a3c99fdd2 Fixed bad reg 2015-11-15 14:28:32 +00:00
hydrabolt
de36e8c9d8 Fixed bad reg 2015-11-15 14:28:24 +00:00
hydrabolt
f1bde8a98a Semantically correct 2015-11-15 14:26:30 +00:00
hydrabolt
fbd922e557 More things 2015-11-15 14:21:22 +00:00
hydrabolt
68ac437ef0 Fixed channel.delete() 2015-11-15 13:57:51 +00:00
hydrabolt
083244f744 Added channel.delete() 2015-11-15 13:55:29 +00:00
abalabahaha
3e37c5d91f Removed trailing spaces, added unbanMember and kickMember 2015-11-11 18:36:24 -08:00
hydrabolt
f6dfea5abd Added createInvite 2015-11-05 18:39:02 +00:00