Commit graph

490 commits

Author SHA1 Message Date
andrei
1fc0e2053b Add support for multiple voice connections
With the upcoming API changes, Discord will be allowing bot users to be
onnected to more than one voice channel at a time. This commit is a
first stab at implementing that functionality in discordgo.

Voice works pretty good right now, ideally the next step is to cleanup
some of the channel-spam and weird blocking-spots.
2016-03-05 01:05:18 -08:00
Bruce
f9db2f7ed6 Merge pull request #140 from abalabahaha/develop
Added UserChannelPermissions function
2016-03-04 08:26:48 -06:00
abalabahaha
0969cc3d86 Format the permission constants 2016-03-04 06:12:17 -08:00
abalabahaha
539b9d203f Fix UserChannelPermissions 2016-03-04 05:50:11 -08:00
abalabahaha
cd24674ebb Added UserChannelPermissions function 2016-03-04 08:07:57 +00:00
Bruce
d0c30f0f14 Merge pull request #139 from noisypixy/develop
Replace HTTP status codes for net/http constants.
2016-03-03 00:24:16 -06:00
noisypixy
ce9840f8c4 Constant missing in Go < 1.6 2016-03-02 21:13:53 -04:30
noisypixy
6c820412cf Replace HTTP status codes for net/http constants. 2016-03-02 19:26:00 -04:30
Bruce
f5b21ea2a0 Merge pull request #136 from nstafie/develop
BREAKING -- Add VerificationLevel value consts and a typedef for int
2016-02-28 14:05:10 -06:00
Nicholas Stafie
cba9b5039e
Refactor VerificationLevel consts 2016-02-27 01:22:02 +02:00
Nicholas Stafie
58fe658fa5 Add VerificationLevel value consts and a typedef for int 2016-02-27 00:28:05 +02:00
Bruce
226df093f6 Merge pull request #132 from nstafie/develop
BREAKING -- Add support for setting guild region and verification level
2016-02-26 14:58:56 -06:00
Bruce Marriner
a45e493e1f Add limit max values in comments 2016-02-24 23:29:59 -06:00
Bruce Marriner
73c0b90f16 Merge branch 'develop' of https://github.com/bwmarrin/Discordgo into develop 2016-02-24 23:28:46 -06:00
Bruce Marriner
85e06e3e83 Encrypt / Decrypt Voice packets, closes #133 2016-02-24 23:27:56 -06:00
Nicholas Stafie
f5ac3b10bf
Better document GuildEdit arguments 2016-02-25 00:31:51 +02:00
Nicholas Stafie
1a844d697d Add support for guild region and verification level 2016-02-25 00:27:13 +02:00
Bruce
ec5dd888c1 Merge pull request #131 from iopred/docs
Allow Ready events to fire even after a unmarshalling error.
2016-02-22 10:39:59 -06:00
Chris Rhodes
a11e81fc96 Bring back discrim too. 2016-02-22 08:27:17 -08:00
Chris Rhodes
75a5d6bf62 Bring back color 2016-02-22 08:20:36 -08:00
Chris Rhodes
9c23b3bbef Merge remote-tracking branch 'bwmarrin/develop' into docs 2016-02-22 00:11:52 -08:00
Chris Rhodes
abc0e5b095 Work around a Discord server issue. 2016-02-22 00:11:39 -08:00
Bruce
451babab1c Merge pull request #130 from iopred/docs
Support user guild settings update event. Closes #128.
2016-02-21 21:45:31 -06:00
Chris Rhodes
f58410afa4 Support user guild settings update event. 2016-02-21 19:35:21 -08:00
Bruce Marriner
44d4667463 Bump to v0.12.0-alpha 2016-02-20 20:59:40 -06:00
Bruce Marriner
cadf36c775 Bump to v0.11.0 2016-02-20 20:53:56 -06:00
Bruce Marriner
a9306fda00 Removed unreachable return 2016-02-20 17:42:10 -06:00
Bruce
f67b8152cf Merge pull request #127 from iopred/docs
BREAKING -- Change API for ChannelMessages to accept Message ID's as strings. Fixes #120
2016-02-20 17:33:59 -06:00
Bruce Marriner
c3cb8469bb Removed GuildInviteCreate function. 2016-02-20 17:03:07 -06:00
Chris Rhodes
50b7bdd6ff Change API for ChannelMessages to accept Message ID's as strings. Fixes #120 2016-02-20 14:21:25 -08:00
Bruce Marriner
e1a88003e6 Will use current rate limit method for forseable future, closes #12 2016-02-20 15:56:07 -06:00
Bruce Marriner
94f0aacc0a websocket heartbeat is now simplier. Closes #121 2016-02-20 15:19:55 -06:00
Bruce Marriner
a24247b6e8 Added Bitrate to Channel struct, closes #116 2016-02-20 14:51:02 -06:00
Bruce Marriner
d084cdd639 dgvoice isn't experimental, added link to dca. 2016-02-20 13:08:52 -06:00
Bruce Marriner
0b6a535302 Added section about branches 2016-02-20 12:44:23 -06:00
Bruce
e244177d27 Merge pull request #126 from iopred/docs
Fix for single threaded job queue feature.
2016-02-20 01:05:15 -06:00
Chris Rhodes
2840b56c51 Merge remote-tracking branch 'bwmarrin/develop' into docs 2016-02-19 23:00:48 -08:00
Chris Rhodes
457b03f66e Fix deadlock because I'm dumb. 2016-02-19 23:00:41 -08:00
Bruce
290e3c6b87 Merge pull request #125 from iopred/docs
Handler updates.
2016-02-20 00:51:50 -06:00
Chris Rhodes
2b4b19cfd8 Fixed some test comment wording. 2016-02-19 22:44:06 -08:00
Chris Rhodes
c291988335 Bring back the Lock as it's technically correct. 2016-02-19 22:32:15 -08:00
Chris Rhodes
79247272ff Handler updates, no backwards incompatible API changes.
AddHandler now returns a func that can remove the handler.
The handlers map is now guarded by its own mutex.
Moved eventMap to events.go for readability.
Improved documentation.
2016-02-19 22:28:21 -08:00
Bruce Marriner
f832d3da4a Fix so opusSender exits better on close, closes #123 2016-02-19 16:09:16 -06:00
Bruce
bb612a0e8b Merge pull request #122 from iopred/patch-2
Fix a Lock instead of RLock in initialize.
2016-02-19 13:34:44 -06:00
Chris Rhodes
32f8c03270 Fix a Lock instead of RLock in initialize. 2016-02-19 11:25:46 -08:00
Bruce Marriner
e0010ab0ba Add limit and offset to GuildMembers, closes #105 2016-02-19 00:42:52 -06:00
Bruce Marriner
a5130cff51 Added large_threshold to connection and set to 250, closes #41 2016-02-18 22:18:03 -06:00
Bruce
f801d95c14 Merge pull request #114 from iopred/guilds
Partial support new GuildMember endpoints.
2016-02-18 21:56:07 -06:00
Bruce
296a118712 Merge pull request #113 from iopred/develop
Clean up mutexes around s.handlers so they exist only in discord.go
2016-02-18 21:48:31 -06:00
Bruce Marriner
eec0faa7b3 Handle VOICE_SERVER_UPDATE better, closes #115 2016-02-18 21:42:23 -06:00