Bruce
cb6b3b956e
Revert "Add sharding support"
2016-04-25 13:24:00 -05:00
Bruce
d5503b3621
Merge pull request #176 from jonas747/settings
...
Added new fields to Settings struct
2016-04-24 20:53:39 -05:00
jonas747
82ac29f0bc
Updated settings struct
2016-04-25 03:30:12 +02:00
Bruce
ceac4e3e25
Merge pull request #174 from jonas747/dunno
...
Added new fields to READY struct.
2016-04-24 18:24:20 -05:00
jonas747
339ad583da
Changed Id to ID per iopreds request
2016-04-25 00:59:03 +02:00
jonas747
88c37e75a1
Figured out relationship type
2016-04-25 00:56:51 +02:00
jonas747
4906a4cf9c
Added some undocumented fields to ready event
2016-04-24 23:35:37 +02:00
Bruce
b14a2ce8da
Merge pull request #171 from iopred/develop
...
Fix unmarshall error with Invite, improve error logging.
2016-04-23 22:35:51 -05:00
Chris Rhodes
8be21fb539
Fix unmarshall error with Invite, improve error logging.
2016-04-23 11:03:07 -07:00
Bruce Marriner
bda7434f18
Moved State struct to state.go
2016-04-22 16:53:57 -05:00
Bruce
7bd2bb19d8
Merge pull request #166 from b1naryth1ef/feature/sharding
...
Add sharding support
2016-04-22 15:42:23 -05:00
Chris Rhodes
24e7f04e0e
Add support for GuildEmbed and GuildIntegration endpoints.
2016-04-22 11:34:04 -07:00
andrei
92caf31b7f
Implement Guild Sharding
...
This implements the upcoming change (see hammerandchisel/discord-api-docs#17 )
to add guild-sharding support directly in the Discord Gateways.
2016-04-19 18:09:38 -07:00
Chris Rhodes
87b2daa832
Merge remote-tracking branch 'bwmarrin/develop' into develop
2016-04-11 22:17:26 -07:00
Bruce Marriner
1a672823a2
Lint and Cleanup
2016-04-11 18:54:19 -05:00
Bruce Marriner
836e78d3d9
Pass struct along with OnEvent event.
2016-04-11 16:56:43 -05:00
Chris Rhodes
fa63c00fa2
Add fast lookups for guilds and channels in state.
2016-04-10 16:18:29 -07:00
Bruce Marriner
92c27c7712
Because binzy was too lazy.
...
No seriously, this allows us see if a guild is actually being created
or just being lazy-loaded.
2016-04-08 11:51:58 -05:00
andrei
019d0fe9af
Fix lazy-loading of guilds not working
...
We're moving to lazy-loading guilds, meaning bots now recieve a READY
packet with guilds that only have 'id' and 'unavailable' fields. Post
READY, the client then lazyily recieves GUILD_CREATE's for the rest of
the guilds it's in. Previously we assumed the first instance of the
guild we got (from ready) had all the required information, now we need
to use the GUILD_CREATE if the guild was marked as unavailable.
2016-04-04 13:45:41 -07:00
Chris Rhodes
6e568533b2
Early support for PresencesReplace
2016-03-19 16:22:36 -07:00
Bruce Marriner
88492a1dcf
Add Token to user struct, and some gofmt.
2016-03-11 23:18:36 -06:00
Chris Rhodes
60b801db27
Support the new bot field on User.
2016-03-10 22:02:59 -08:00
andrei
5dc0b9f2a1
Add connect timeout, fix ChannelVoiceJoin "leaking" connections
2016-03-08 02:36:00 -08:00
andrei
b48e8c992e
Track voice state changes, expose stuff, add channel changing
2016-03-07 15:41:02 -08:00
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
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
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
Nicholas Stafie
1a844d697d
Add support for guild region and verification level
2016-02-25 00:27:13 +02: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
abc0e5b095
Work around a Discord server issue.
2016-02-22 00:11:39 -08:00
Chris Rhodes
f58410afa4
Support user guild settings update event.
2016-02-21 19:35:21 -08:00
Bruce Marriner
a24247b6e8
Added Bitrate to Channel struct, closes #116
2016-02-20 14:51:02 -06: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
Chris Rhodes
b083ce00c7
Un-expose handlers. Clean up Session struct.
2016-02-14 21:58:29 -08:00
Chris Rhodes
88335b6f54
Small performance improvement. Added tests.
2016-02-14 19:01:45 -08:00
Chris Rhodes
8ffaa85b0b
Thread safety and more events.
2016-02-14 13:41:56 -08:00
Chris Rhodes
fb6ae92555
Add basic support for mapped event handlers.
2016-02-14 13:17:20 -08:00
Chris Rhodes
40b969d7c3
VoiceServerUpdate and VoiceStateUpdate
2016-02-08 08:05:08 -08:00
Bruce Marriner
9b8e880744
Optimized some structs to reduce their runtime size.
2016-01-28 11:10:12 -06:00
Bruce Marriner
edc09778a7
Linting.
2016-01-28 08:36:09 -06:00
Bruce Marriner
9c5cd00d34
Spelling.
2016-01-27 23:31:43 -06:00
Chris Rhodes
fd32614a63
Make compression optional, clean up some comments and unused fields.
2016-01-24 09:49:41 -08:00
Chris Rhodes
e94e14e9d2
Support ShouldReconnectOnError with exponential backoff up to 10 minutes.
2016-01-21 14:15:24 -08:00
Chris Rhodes
2a9538e9f1
I must stop doing last minute changes.
2016-01-20 23:01:20 -08:00
Chris Rhodes
cd55a59ff9
Refactor open/close logic. Support OnConnect and OnDisconnect.
2016-01-20 22:47:34 -08:00
Chris Rhodes
0f38b22ca1
Message state tracking.
2016-01-16 00:20:41 -08:00