jonas747
56b19073d3
Ratelimits ( #273 )
...
* Added ratelimiter
Handles the new ratelimit headers
- X-RateLimit-Remaining
- X-RateLimit-Reset
- X-RateLimit-Global
* Pad only reset time with a second
* Moved ratelimiter out of internal package
* Change for loop, move global ratelimit check inside sleep check
* Moved ratelimiter locking to getBucket
* Added global bucket
* Changed how bucket id's are done
Now each request function will need to specify the bucket id if the
endpoint contains minor variables
* Allow empty bucketID in request
* Remove some uneeded Endpoint* function calls
* Added test for global ratelimits
* Fixed a silly little mistake causing incorrect ratelimits
* Update test comments, Fixed treating a endpoint as 2 in ratelimiting
* Use date header from discord instead of relying on sys time sync
* Update all REST functions to use RequestWithBucketID
* Embed mutex into bucket
* Added webhook and reaction buckets
2016-11-04 08:07:22 -07:00
Chris Rhodes
5a40e65c72
Merge pull request #276 from iopred/develop
...
Fix GuildBans. Fixes #263
2016-11-03 22:46:02 -07:00
Chris Rhodes
5ef835fc80
Fix GuildBans. Fixes #263
2016-11-03 22:39:55 -07:00
Chris Rhodes
ef4e2224f9
Merge pull request #275 from iopred/reactions
...
Add support for Message Reactions.
2016-11-03 22:14:38 -07:00
Chris Rhodes
c96162c425
Add support for Message Reactions.
2016-11-03 22:07:06 -07:00
Chris Rhodes
84a92549bc
Merge pull request #274 from iopred/develop
...
Add Webhook support.
2016-11-03 19:47:15 -07:00
Chris Rhodes
ee3e500749
Add webhook support.
2016-11-03 19:41:57 -07:00
Chris Rhodes
e37343d4d4
Update examples to use Bot tokens.
2016-10-29 16:30:19 -07:00
Austin Davis
212fc66a25
casing matters for some reason tried BOT and it returns a 401. ( #268 )
...
Also got the name of the executable wrong in mytoken (damn copy paste...)
2016-10-13 19:14:54 -07:00
jonas747
9187964002
Added custom rest error type ( #271 )
2016-10-13 19:13:42 -07:00
jonas747
9f24531220
Update ChannelMessageAck because of api changes ( #270 )
2016-10-13 12:42:05 -07:00
Chris Rhodes
9b41864a68
Remove 1.5, lint is broken :(
...
:killme:
2016-10-04 20:12:36 -07:00
Chris Rhodes
c4c27915f7
Bring back 1.5, make lint non fatal.
2016-10-04 20:12:31 -07:00
Chris Rhodes
9ac041f85a
Remove 1.5 from travis as golint seems to have lost support.
2016-10-04 20:12:25 -07:00
Austin Davis
627f9a3ca6
Updates docs to include the newly required "Bot" infront of bot user tokens. ( #266 )
2016-10-04 14:45:36 -07:00
robbix1206
af3fe4842a
Add Support of changing user status ( #258 )
...
Add Support of changing user status
2016-09-28 10:04:37 -07:00
Chris Rhodes
c6ee0d2dd5
Clean up state access. ( #261 )
...
Clean up state access.
2016-09-27 22:45:12 -07:00
Chris Rhodes
0115c9c335
Clean up state access.
2016-09-27 22:36:38 -07:00
Chris Rhodes
10b5bd0b32
Merge remote-tracking branch 'bwmarrin/develop' into develop
2016-09-27 22:36:10 -07:00
Chris Rhodes
b71136ac14
Merge pull request #259 from b1naryth1ef/bugfix/voice-state-update-api-usage
...
Remove API call in onVoiceStateUpdate
2016-09-27 22:35:56 -07:00
Chris Rhodes
663abba05e
Merge remote-tracking branch 'bwmarrin/develop' into develop
2016-09-27 22:25:36 -07:00
Chris Rhodes
2e2e02fc11
Support a very light state in all cases to support b1nzy's upcoming PR ( #260 )
...
Support a very light state in all cases to support b1nzy's upcoming PR
2016-09-27 22:09:44 -07:00
Chris Rhodes
581f6e7867
Merge pull request #256 from jonas747/request-members
...
Added RequestGuildMembers to request guild members from the gateway
2016-09-27 22:08:36 -07:00
Chris Rhodes
ef83d2098f
Merge pull request #236 from jonas747/split
...
Added UserGuild struct, UserGuilds now returns a UserGuild slice
2016-09-27 22:04:37 -07:00
Chris Rhodes
6c53613186
Thanks govet.
2016-09-27 22:02:28 -07:00
jonas747
1dcdf130fd
Fix Another typo
2016-09-28 07:00:11 +02:00
Chris Rhodes
8164119cac
Support a very light state in all cases to support b1nzy's upcoming PR
2016-09-27 21:44:16 -07:00
jonas747
c9d0ac8463
Update comment to UserGuild
2016-09-28 06:43:37 +02:00
jonas747
1ecb7458e9
Fix typos
2016-09-28 06:31:39 +02:00
Chris Rhodes
42e934d3b2
Merge pull request #246 from robbix1206/timestamps
...
Timestamps
2016-09-27 21:22:07 -07:00
Chris Rhodes
8bd3f75441
Merge pull request #227 from jonas747/retry
...
Retry on 502's
2016-09-27 21:19:25 -07:00
Chris Rhodes
910b864864
Merge pull request #255 from jonas747/msg-timestamps-missing
...
Apply more fields to existing message in message update
2016-09-27 21:15:14 -07:00
Chris Rhodes
9b6b657083
Merge pull request #249 from iopred/develop
...
Correctly merge GUILD_UPDATE events. Closes #242
2016-09-27 21:15:03 -07:00
andrei
1edd3b6484
Remove API call in onVoiceStateUpdate
2016-09-27 17:39:14 -07:00
jonas747
ebb910f3ac
Set default MaxRestRetries to 3
2016-09-27 18:25:40 +02:00
jonas747
9c7c9d3fd2
Added RequestGuildMembers to request guild members from the gateway
2016-09-25 21:29:59 +02:00
jonas747
f01c5a3344
Apply more fields to message in message update
...
In case update was handled before create
2016-09-25 20:16:28 +02:00
Bruce
bbbc21db6b
Merge pull request #253 from greenbigfrog/patch-1
...
fix typo
2016-09-20 08:58:11 -05:00
Jonathan
374c41e753
fix typo
2016-09-20 15:33:08 +02:00
Bruce
d1e4691e3e
Merge pull request #252 from iopred/blah
...
Use the everyone role to initialise the permission flags.
2016-09-16 11:11:04 -05:00
Chris Rhodes
cd6971839a
Use the everyone role to initialise the permission flags.
2016-09-15 18:51:57 -07:00
Chris Rhodes
003454345b
Use the everyone role to initialise the permission flags.
2016-09-15 18:51:09 -07:00
Bruce
3cc6d4346d
BREAKING Merge pull request #251 from softashell/role_mentionable
...
Add mentionable to Role struct and update GuildRoleEdit
2016-09-15 18:18:51 -05:00
soft as HELL
1ab71f4b12
Update GuildRoleEdit
2016-09-11 14:32:58 +03:00
soft as HELL
ef3cd76e3d
Add mentionable to Role struct
2016-09-11 14:32:41 +03:00
Chris Rhodes
d28edb024e
Fix airhorn example.
2016-09-08 20:07:43 -07:00
Chris Rhodes
42cef0c0d0
Remove unavailable goop, b1nzy says it'd never happen.
2016-09-08 20:06:24 -07:00
Chris Rhodes
678756c9a9
Simplify Guild.Unavailable and correctly merge GUILD_UPDATE events.
2016-09-08 19:39:29 -07:00
robbix1206
a2e6e1da45
Fix the pattern
...
The Pattern was not the correct one fixing it by the pattern of RFC3339
2016-09-03 23:38:34 +02:00
Bruce
acf7de8b3d
Merge pull request #243 from robbix1206/#231_Support_getting_Bot_owner
...
#231 Support getting Bot account / owner
2016-09-03 11:32:11 -05:00