Alexander
57c2762b53
Fixed a bad documentation comment for State.ChannelAdd ( #338 )
2017-03-16 07:04:58 -10:00
Bruce
197f24b96a
Merge pull request #340 from jonas747/fix-receive-racey-packet
...
Fix race-y packet in opusReceiver
2017-03-16 08:01:40 -05:00
jonas747
80a3678069
Fix race-y packet in opusReceiver
2017-03-16 03:46:19 +01:00
LEGOlord208
d4f874c0f4
UserAvatar to accept user object. ( #337 )
...
* UserAvatar to accept user object.
One of the most important thing with this library is that it does 1 request per function. You have 100% control over how many web requests get made.
UserAvatar breaks that.
UserAvatar now accepts a user, which not only makes you know how many web requests gets made, but might also save on web requests if you have an existing user object.
* Removed dots. Please work, travis :<
* Ohhh... A friend spotted the error!
* `go fmt` and fixed comment... PLS TRAVIS
2017-03-13 10:10:58 -07:00
Sebastian Winkler
b7f00b390a
Added ChannelMessageSendEmbedWithMessage ( #335 )
...
* Added ChannelMessageSendEmbedWithMessage
* Updates ChannelMessageSendEmbed to use ChannelMessageSendEmbedWithMessage
2017-03-13 08:05:01 -07:00
Chris Rhodes
c34affbc57
Report state update errors as debug.
2017-02-23 17:54:45 -08:00
Bruce Marriner
94ee1fb978
Add Go 1.8 to travis tests
2017-02-20 08:23:28 -06:00
Lukas
edd6e169fa
Track voice-channel movements ( #317 )
2017-02-11 22:18:19 -08:00
Jonathan Alexander
383bdad7dd
Add support for @me in GuildMemberNickname ( #319 )
2017-02-11 22:17:54 -08:00
jonas747
b07d1c4621
Fix leaking tickers ( #314 )
2017-01-23 12:13:59 -08:00
alex
d55c9a45e7
Change image endpoints to use .png, add EndpointGroupIcon and cdn endpoints ( #309 )
2017-01-18 19:47:56 -08:00
jonas747
dce3ada92b
Proper ratelimit buckets for RoleAdd and RoleRemove ( #311 )
2017-01-14 10:04:36 -08:00
jonas747
bdb31f245d
Fix all found race conditions, and dont send on nil channel ( #307 )
2017-01-10 20:01:47 -08:00
Bruce
53842f8dfc
Merge pull request #306 from Moonlington/develop
...
BREAKING add Around parameter to ChannelMessages, fixes #293
2017-01-03 09:59:50 -06:00
Floretta
dacb0a3a0c
Added comment line describing the around parameter
2017-01-03 16:42:27 +01:00
Floretta
c4c9502072
added Around parameter to ChannelMessages
2017-01-02 22:49:03 +01:00
Chris Rhodes
d22169d60f
Remove type checks for handlers, it's done implicitly in the handlerForInterface call. ( #305 )
2016-12-29 09:58:51 -08:00
jonas747
6fd80199bf
Handle MessageDeleteBulk event ( #304 )
...
* Handle MessageDeleteBulk event
* Changed State.MessageRemove to use id's
* Revert State.MessageRemove change and add State.messageRemoveById
* Fix linting
2016-12-28 12:29:36 -08:00
jonas747
2d50fc197f
Fix racey heartbeat sequence ( #303 )
...
* Fix racey heartbeat sequence
* Change all sequence fields to int64
2016-12-28 11:59:02 -08:00
jonas747
edc3213ffb
Reuse http client, and export it ( #301 )
2016-12-25 16:23:11 -08:00
Kristian Klausen
b377944b97
Switch to V5 gateway ( #300 )
...
This switch the gateway to V5, and change the heartbeat logic to
get the heartbeat_interval from the new Hello opcode instant of
READY/RESUME event.
See: https://github.com/hammerandchisel/discord-api-docs/issues/18
Fix : #220
2016-12-25 16:22:14 -08:00
jonas747
3fdc5f373d
Add "PermissionAdministrator" to "PermissionAll" ( #302 )
2016-12-24 11:36:14 -08:00
Bruce Marriner
cb96c5b0f7
Log voice connect error in the right place.
2016-12-20 12:00:34 -06:00
Bruce Marriner
2730035a13
Don't error if we're never going to use it.
2016-12-11 13:07:15 -06:00
Bruce Marriner
7811077148
Handle error better.
2016-12-11 12:57:58 -06:00
Bruce Marriner
97d4489481
Check for errors :)
2016-12-11 12:55:06 -06:00
Bruce Marriner
cc272d6f14
Linting..
2016-12-11 12:50:12 -06:00
Bruce Marriner
9e777a083b
Linting.
2016-12-11 12:45:34 -06:00
Bruce Marriner
68a784327f
Merge branch 'develop' of https://github.com/bwmarrin/discordgo into develop
2016-12-11 12:24:29 -06:00
Bruce Marriner
c541df15df
Removed dead code.
2016-12-11 12:24:17 -06:00
Chris Rhodes
db2f9eb29b
Support getting the color of a user. ( #299 )
2016-12-10 21:37:11 -08:00
Chris Rhodes
fb346787be
Improve permissions. ( #298 )
...
* Fix permissions to take into account @everyone override in channels.
* Keep early exit for channel owner.
2016-12-10 20:31:16 -08:00
Chris Rhodes
96d7ebfb70
Generate type assertion code. Don't generate interfaceProviders for internal handlers. ( #297 )
...
* Generate type assertion code. Don't generate interfaceProviders for internal events.
* Don't bother type checking interface providers, it's done in the init() call.
2016-12-10 20:31:07 -08:00
jonas747
86a21ea94b
Updated userguilds to new api ( #296 )
...
* Updated userguilds to new api
* Fixed typos
2016-12-10 09:45:07 -08:00
Chris Rhodes
8b24e88bc5
Bump version to 0.16.0-dev
2016-12-10 06:47:49 -08:00
Bruce
0759785277
Merge pull request #294 from iopred/reflect
...
Remove the use of reflect.
2016-12-08 10:19:13 -06:00
Bruce Marriner
e650021037
Test against 1.6 and 1.7, make lint fatal again.
2016-12-08 10:16:37 -06:00
Chris Rhodes
36601253a4
Remove use of reflect.
...
This introduces gogenerate'ed EventHandlers from the files in events.go
This also adds support for AddHandlerOnce.
2016-12-03 23:31:07 -08:00
Chris Rhodes
24a51f654f
👌
2016-11-30 18:02:13 -08:00
Chris Rhodes
9f7a7c9352
Don't stomp on messages or permission overrides on ChannelUpdate.
2016-11-30 17:59:17 -08:00
AI
2092185ec5
Implement support for new member role endpoint ( #289 )
...
Implements support for the new member role add and delete endpoint
hammerandchisel/discord-api-docs#179
2016-11-30 08:57:22 -08:00
Chris Rhodes
315ae45231
Set GuildID on all members in discordgo land not in state.
2016-11-29 20:23:10 -08:00
Matthew Gerstman
d726f93375
Fix issue with trailing slashes in MacOS ( #292 )
...
* Fix issue with trailing slashes in MacOS
2016-11-29 19:24:22 -08:00
Chris Rhodes
20d230cd04
Update GuildID's on GuildAdd
2016-11-29 19:17:03 -08:00
Chris Rhodes
54e0bd6087
Fix Admin permission calculations.
2016-11-29 19:09:01 -08:00
Chris Rhodes
1bc3fb9cd7
Set the GuildID for Members and VoiceStates on ready.
2016-11-29 19:05:09 -08:00
Chris Rhodes
03343b41fd
Update discord.go
2016-11-23 17:18:37 -08:00
rytone
3f6a127baa
Support for editing messages with embed data ( #290 )
2016-11-19 20:28:52 -08:00
Chris Rhodes
717c8f2538
Support embed messages.
2016-11-13 22:04:30 -08:00
Chris Rhodes
b7c7e60fd5
Fix presence unmarshalling as the values are inconsistent from Discord. ( #287 )
2016-11-12 11:59:51 -08:00