Commit graph

1171 commits

Author SHA1 Message Date
vim2meta
d4e2b50ce4
Update restapi.go 2017-11-19 10:12:21 -05:00
vim2meta
7086a1f2a9
Update logging.go 2017-11-19 10:11:09 -05:00
vim2meta
ca1b9186f2
Update event.go 2017-11-19 10:10:17 -05:00
Bruce
07c1da20ff
Merge pull request #477 from sn0w/pr/476-remove-xkcd
Remove XKCDPass Invites
2017-11-11 14:22:42 -06:00
Lukas Breuer
1b69ba4a5f
Format restapi.go with gofmt 2017-11-11 19:49:05 +01:00
Lukas Breuer
a838552b22
Remove XKCDPass Invites
This feature has been removed from the API quite some time ago.
2017-11-11 18:40:05 +01:00
Bruce Marriner
9e1220d82b Lint :) 2017-11-11 15:18:37 +00:00
Bruce Marriner
d45cbf73f0 Changed test Nickname, for fun! 2017-11-11 15:08:49 +00:00
Bruce Marriner
7ed70a416e Change version to v0.18.0-alpha 2017-11-11 15:07:55 +00:00
Bruce Marriner
7d1657e59b Open() func now validates connection, fixed #198
Now the open function will follow through a bit more and insure that the
proper sequence of events happens during the Open call.  This required
some refactoring and a few mild changes in the onEvent func.
2017-11-11 15:04:56 +00:00
Nicholas Hanley
43bf6cf0d0 Fix TimeStamps unmarshalling (#474) (#475) 2017-11-08 18:39:26 -08:00
Bruce Marriner
a948670657 Add comments 2017-11-08 19:59:54 +00:00
Bruce Marriner
8c52d97c1e Linting. 2017-11-08 19:54:04 +00:00
Bruce Marriner
277bbbebee I don't want your non-linted code. 2017-11-08 19:41:40 +00:00
Bruce Marriner
1c4ea6df04 gofmt :) 2017-11-08 19:36:26 +00:00
Necroforger
d554270136 Allow size parameter to be omitted (#468) 2017-11-08 07:55:51 -08:00
NamedKitten
48eecda67e Forgot ... (#473) 2017-11-08 07:45:27 -08:00
NamedKitten
287add05a5 Fix typo. (#466) 2017-10-24 08:09:51 -07:00
Chris Rhodes
7373a96b71 Remove trailing space. 2017-10-23 13:35:53 -07:00
NamedKitten
d30b33abfa Add support for custom logging behaviour. (#465) 2017-10-23 13:08:14 -07:00
NamedKitten
70c6c583e4 Use v.log rather than log for consistency. (#464)
Change made to keep the use of logging consistent.
2017-10-23 11:20:07 -07:00
Cory Ory
8737777ce7 Implement Raw sending of status (Rich Presence and Online Status) (#462)
* Added ability to change the online status

* Add structs for rick presence implementation

* Refractor and publicise UpdateStatusData

* Add UpdateStatusComplex for raw status data sending

* Case gameType to int, stopped it compiling

* Might want to gofmt.

Doesn't do it on save because Gogland removed it and their new thing I
can't make sense of.

* Revert "Added ability to change the online status"

This reverts commit 235cd15a8eebbec070cb95a5853295387bceae1c.

* Change gametypeto match

* Move RLock to UpdateStatusComplex
2017-10-22 14:08:08 -07:00
Spencer Davies
42f1f24287 added clarification when initializing discordgo
from the code I ran on my system with the latest changes this seems to be the syntax for the authentication tokens. I'm guessing it was just never updated.
Let me know if this is incorrect. 
Thanks!
2017-10-19 23:47:14 -06:00
Max Boße
28dc6f6f33 Add members from GuildMembersChunk to state (#456) 2017-10-10 10:35:07 -07:00
Chris Rhodes
9ce745633f Revert "Add members from GuildMembersChunk to state (#454)" (#455)
This reverts commit e4487b30d4.
2017-10-10 09:21:53 -07:00
Max Boße
e4487b30d4 Add members from GuildMembersChunk to state (#454) 2017-10-10 09:21:39 -07:00
Carson Hoffman
8f1a335d25 Added fix for #437 (#452) 2017-10-08 17:54:06 -07:00
Necroforger
aeda5eb7b1 Update bulk-delete endpoint (#451) 2017-10-08 15:37:24 -07:00
Erik McClure
97a510ca0a Add rate limit buffering support (#430)
* Fix #406: reconnect() can be called while still connected

* Add memberMap to speed up member queries

* Fix error return value and remove deletion

* Fix GuildAdd member map initialization edge case

* Add rate limit buffering support

- Break request into requestInner
- Break LockBucket into LockBucketObject
- Change getBucket to GetBucket so it can be externally accessed
- Add RequestBuffer interface
- Add RequestBuffer pointer to Bucket struct
- Add RequestPostWithBuffer() function to Session

* Remove internal implementation, export ratelimiter instead
2017-10-07 10:54:46 -07:00
jD91mZM2
9da2c9e76a Added GameType (#435)
* Added GameType

* Delete useless function
2017-10-07 10:54:04 -07:00
Sebastian Winkler
7b6a91ac04 adds parent_id to channel struct (#448) 2017-09-22 07:42:59 -07:00
robbix1206
550145114d Add ChannelID to WebhookeEdit (#434) 2017-09-21 20:11:41 +02:00
Bruce
b7d7e0342e Merge pull request #444 from robbix1206/recipientBug
Fix #443 (recipients not recipient)
2017-09-21 12:43:56 -05:00
robbix1206
24dcabd55d Fix #443 2017-09-21 00:32:49 +02:00
jD91mZM2
c768789edf
Delete useless comma 2017-09-08 17:02:33 +02:00
jD91mZM2
f73dec458e
Stuff... yay 2017-09-08 17:01:32 +02:00
Nick Dumas
c4a08de525 Remove a misspelled copy of EndpointGuildInvites. Issue #440 (#441)
Reference Issue: https://github.com/bwmarrin/discordgo/issues/440
This endpoint was declard twice in endpoints.go, and used in the
GuildInvites() method on Session values. I replaced the misspelled
invocation.

All tests pass.
2017-09-07 13:46:40 -07:00
Bruce
2fda7ce223 Bump to v0.17.0 2017-09-05 20:05:02 +00:00
Chris Rhodes
fd8721a522 Revert "Fixed 404 when calling Session.GuildCreate (#439)"
This reverts commit cf237e4c25.
2017-09-04 21:39:35 -07:00
CarsonHoffman
cf237e4c25 Fixed 404 when calling Session.GuildCreate (#439) 2017-09-04 18:30:22 -07:00
Bruce
06b35cfe24 Linting. 2017-09-03 20:01:46 +00:00
LEGOlord208
2f51bf4d58
Merge branch 'develop' into 1 2017-08-29 07:53:58 +02:00
LEGOlord208
5cc3122299
Merge remote-tracking branch 'upstream/develop' into 1 2017-08-29 07:48:34 +02:00
LEGOlord208
9a36098f5c
Revert one usecase 2017-08-29 07:46:24 +02:00
Chris Rhodes
1b5dbef04e Merge commit 'd420e28024ad527390b43aa7f64e029083e11989' into develop 2017-08-19 11:20:04 -07:00
robbix1206
d6b616c58f #429-Fix (#432) 2017-08-19 10:36:29 -07:00
Jonas is my name
3c8a0dd940 Fix receiving voice after client sets extended header bit (#428) 2017-08-18 08:35:27 -07:00
Jonas is my name
308d058bf1 Fix presence update after breaking API change (#427) 2017-08-17 06:55:02 -07:00
Jonas is my name
3f2c1311d5 Export State.OnInterface (#417) 2017-08-13 19:52:05 -07:00
tsudoko
55d995899e Add NSFW channel field (#419) 2017-07-31 16:48:29 -07:00