Commit graph

639 commits

Author SHA1 Message Date
Manuel Kraus
ad7ffcecb4 Beautify code style 2016-05-25 01:45:02 +02:00
Manuel Kraus
0a5ce3dcd5 Call deleteMessage if only one message 2016-05-25 01:40:18 +02:00
Manuel Kraus
8bee117445 Fix bulk deletion error if < 2 messages
Also return error if no server (dm)
2016-05-24 23:44:26 +02:00
Programmix
0f9741bb14 Update channel improvements
Also documented two methods for voice connections. (pause and resume)
2016-05-23 12:28:17 -07:00
Programmix
fae03042cb User limit fix (#359)
* User limit fix

* Better request parameters
2016-05-22 22:36:08 -07:00
Nicholas Tay
bea1663052 Set bitrate for voice channels support (#363)
* Set bitrate for voice channels

* Docs for bitrate settings and values
2016-05-22 17:53:52 -07:00
abalabahaha
fe1d0bb595 Add bot property to presence update 2016-05-21 09:56:43 -07:00
Programmix
ab2c9d9a8d VoiceChannel user limit support 2016-05-21 09:50:48 -07:00
Programmix
d42cbd1c14 Add server property to the Message class
Extremely simple change, but I (and others) would probably find it a
nice shortcut.
2016-05-21 09:46:03 -07:00
abalabahaha
79ee493a39 Role data update fix 2016-05-21 09:44:24 -07:00
Manuel Kraus
d2f0f4993e Add mentionable to role objects (#358) 2016-05-21 09:20:32 -07:00
abalabahaha
48595ddd19 Add voice connection timeout 2016-05-20 20:50:49 -07:00
abalabahaha
3fa3b0238e Catch udp close errors 2016-05-20 20:42:53 -07:00
abalabahaha
9015bb8139 Map roles to role IDs if possible 2016-05-20 20:40:32 -07:00
abalabahaha
00ff2f71a4 Build the playArbitraryFFmpeg fix 2016-05-19 08:49:19 -07:00
abalabahaha
e1808804c9 serverMemberUpdated clarification and crash fix 2016-05-17 22:31:35 -07:00
abalabahaha
e6572caf6c guildCreateTimeout option 2016-05-16 15:01:50 -07:00
abalabahaha
1732cc71bd Don't push debug stuff 2016-05-13 20:20:01 -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
873f78b02a Avatar undefined check 2016-05-12 16:58:19 -07:00
Mees van Dijk
afc4c93119 Fixed Cache.has function (#344)
* Fixed Cache.has function

* Fixed Cache.has function

* Fixed Cache.has function

and ran grunt --dev
2016-05-12 16:27:13 -07:00
abalabahaha
db7dca65b2 Fix #342, #321 2016-05-11 20:21:37 -07:00
abalabahaha
0e5a1d2df7 Some undefined checking 2016-05-11 16:42:18 -07:00
abalabahaha
3221bde4db Pass voice ws errors 2016-05-10 22:03:05 -07:00
abalabahaha
d4b693c4b0 deleteMessages docs, fixes 2016-05-10 21:54:42 -07:00
Nicholas Tay
71db8555fe Bulk deletion of messages (#336) (#337) 2016-05-10 09:21:55 -07:00
abalabahaha
d73ebcdfd4 Don't remove unmutual-ed users 2016-05-08 22:03:57 -07:00
Brussell
0c38d47ef6 Added support for new game objects (#332)
bot.setStreaming(name, url, type, callback); added
logic for Internal setStatus updated to check if string or object
2016-05-08 09:47:22 -07:00
abalabahaha
42fd07c5e7 Whoops 2016-05-08 00:55:48 -07:00
abalabahaha
2a1d516a28 Update lastMessageID 2016-05-08 00:23:52 -07:00
abalabahaha
68c1e122c0 Revise member property handling 2016-05-08 00:21:36 -07:00
abalabahaha
af333ef4cc Some fixes 2016-05-08 00:16:20 -07:00
abalabahaha
963b22e6ce Fix #331 2016-05-08 00:09:58 -07:00
abalabahaha
726c0e9ed5 Fix setting own nick 2016-05-08 00:03:29 -07:00
abalabahaha
2eca16dee6 Consistently rename selfMute/selfDeaf 2016-05-04 19:55:19 -07:00
Manuel Kraus
46bcd3f5e3 Add nickname permission constants (#320)
* Add nickname permission constants

* typo

* Remove manageNickname
2016-05-04 16:57:52 -07:00
abalabahaha
9700f8577b roles have positions too 2016-05-02 17:44:22 -07:00
abalabahaha
1f5002ae41 Nickname mention detecting, channel and role mentions in cleanContent 2016-04-30 13:01:06 -07:00
abalabahaha
e48f2ffae3 Add setNickname docs 2016-04-30 11:58:12 -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
Manuel Kraus
9322c0bbd7 Fix Constants changes (#293) 2016-04-23 21:18:25 -07:00
abalabahaha
619139f871 Fix starting PMs 2016-04-23 10:15:29 -07:00
Bruno Moreira
a5517c2c3b Fix obligatory content on sendFile (#292) 2016-04-23 09:32:15 -07:00
abalabahaha
68a21ee679 Potentially fix autoReconnect without internet 2016-04-22 18:14:47 -07:00
abalabahaha
ad338c6a29 Fix logout + autoReconnect loop 2016-04-22 18:07:58 -07:00
abalabahaha
d18fcdbeea Merge pull request #290 from BrunoMoreira991/indev
Fix use of Array as String Resolvable on sendFile with content
2016-04-22 17:52:22 -07:00
abalabahaha
ca251423ea Blank the browser property 2016-04-21 23:41:13 -07:00
BrunoMoreira991
6f466a401e Fix use of Array as String Resolvable on sendFile with content 2016-04-22 01:27:23 +01:00
abalabahaha
b6842d3e07 Make client.user.game use the proper format 2016-04-20 20:18:25 -07:00
abalabahaha
283c99dee8 Fix weird options comments 2016-04-20 20:12:52 -07:00
abalabahaha
533d49d7d4 Fix potential permissionsOf crash 2016-04-16 23:51:49 -07:00
Nicholas Tay
41ead870b7 Update friend_remove cases (should fix #275) 2016-04-17 16:11:51 +10:00
abalabahaha
9083893d79 7.0.1 2016-04-16 10:49:48 -07:00
abalabahaha
487f3ea4f4 Sketchy autoreconnect 2016-04-16 10:32:21 -07:00
abalabahaha
0d93ce9fbd Docs update and updateServer option processing 2016-04-16 00:35:36 -07:00
abalabahaha
dd71bb9e27 ability to send file via sendMessage 2016-04-15 20:10:30 -07:00
abalabahaha
5f1e1b989b updateServer with options 2016-04-15 19:30:01 -07:00
abalabahaha
3ed5f4fb90 Blocked users store, move some warn messages to debug 2016-04-15 19:29:35 -07:00
abalabahaha
864126976f Fix sendFile content 2016-04-15 19:09:14 -07:00
abalabahaha
d0f2029fa6 Voice state update null check 2016-04-15 18:15:20 -07:00
abalabahaha
9251fd01ce sendFile with content 2016-04-13 10:50:03 -07:00
abalabahaha
ecc35eecda Ratelimiter inconsistency fix 2016-04-13 02:06:18 -07:00
abalabahaha
6b189cf3af 7.0.0 2016-04-13 00:47:48 -07:00
abalabahaha
2842b97776 Throw errors on missing voice dependencies 2016-04-13 00:46:13 -07:00
abalabahaha
28fce9ea34 Some docs 2016-04-13 00:38:12 -07:00
abalabahaha
afa5fa1758 Fixes 2016-04-13 00:05:08 -07:00
abalabahaha
b7f20956d7 wait for most servers to be ready 2016-04-12 23:27:44 -07:00
abalabahaha
675ea93bc3 fix the forceFetch fix 2016-04-12 23:07:40 -07:00
abalabahaha
71dd084667 forceFetch fix 2016-04-12 23:01:45 -07:00
Programmix
afde031267 Update voiceConnections on destroy
Instead of manually removing VoiceConnections from
InternalClient.voiceConnections, just integrate the functionality into
VoiceConnection.destroy()
2016-04-10 13:49:13 -07:00
Nicholas Tay
c247a3979b Should be making the self friends stuff null if bot acc 2016-04-11 00:39:14 +10:00
Nicholas Tay
db1435910d Fix for when other users move from different server to another across voice 2016-04-11 00:38:38 +10:00
meew0
bf78c441dd Add a backwards-compatible getter for the first voice connection, thanks @qeled 2016-04-06 15:00:14 +02:00
Aaron Scherer
877eaab3c1 Scope fix for chunk requests during GUILD_CREATE
"scope fix"

* Update InternalClient.js

* Update InternalClient.js
2016-04-06 00:50:56 +02:00
meew0
d53aabefb0 Fix an off by one error in volume transformation range checking 2016-04-05 18:01:49 +02:00
meew0
d48458b80f Add an extra range check to the volume transformer, should hopefully fix #193 2016-04-05 17:33:14 +02:00
abalabahaha
0e54d77025 Merge pull request #251 from nicholastay/multi_voice
Multi voice channel support (new oauth bot accounts and diff servers)
2016-04-05 06:01:45 -07:00
Nicholas Tay
5619e97a39 Minor fixes for d/c handler and non-bot accounts 2016-04-05 12:22:50 +10:00
Nicholas Tay
78399a77ae Handle client being moved around as well 2016-04-05 11:42:43 +10:00
Nicholas Tay
a15b8e56c7 Multi voice connections across servers working 2016-04-05 11:28:13 +10:00
Aaron Scherer
30d011c7ac Adding server update on serverCreated for large servers 2016-04-04 17:08:12 -07:00
Lord-Ptolemy
040ea21b33 Added mute, unmute, deafen, undeafen 2016-04-03 16:16:15 -04:00
abalabahaha
ad66991f36 Use alternatives to .find() because that's not polyfilled 2016-04-03 04:41:57 -07:00
abalabahaha
b3a65a4ed6 Merge pull request #238 from nicholastay/friends_support
Friends (relationships) support
2016-04-02 03:03:27 -07:00
abalabahaha
2c55a65ddb Merge pull request #245 from hydrabolt/volume-fixes
Volume fixes
2016-04-02 03:02:44 -07:00
meew0
dcd57277cd Made channelDeleted emit for private channels, fixes #243 2016-04-02 11:34:48 +02:00
meew0
8fa3c24b12 Rebuild for volume changes 2016-04-02 11:15:33 +02:00
Nicholas Tay
f591542735 Working friends support with events and requests 2016-03-30 21:01:48 +11:00
Nicholas Tay
77346e3415 Send guild_id on voice destroy for bot accounts to work
(thanks qeled for supplying this fix, as per in the node_discord-js discord chat channel :D)
2016-03-28 19:06:10 +11:00
Nicholas Tay
18dd59fe42 Fix bot detection on updateDetails 2016-03-28 19:04:44 +11:00
abalabahaha
74c06f7a69 Workaround for voice channel update member persistence 2016-03-20 00:32:17 -07:00
abalabahaha
99af4a7d66 Fixed bad wording 2016-03-20 00:05:19 -07:00
abalabahaha
28b7b9f5d6 Wrong variable name, logic fixes, forgot a !, allow neutral permission overwrite 2016-03-19 23:45:38 -07:00
abalabahaha
b069f818d9 Unoverlap allow when denying a permission overwrite 2016-03-19 22:54:49 -07:00
abalabahaha
95748f3721 Merge pull request #229 from brussell98/indev
Added ability to use updateDetails() with token
2016-03-19 22:44:05 -07:00
abalabahaha
3bbd4f46d2 Merge pull request #226 from petoem/indev
Add ability to pause and resume audio thats being played
2016-03-19 22:43:48 -07:00
Brandon Russell
93e3106404 Check if user or bot and require email for user 2016-03-20 00:19:29 -05:00
abalabahaha
703ac05400 User bot property 2016-03-19 22:11:11 -07:00