Commit graph

1348 commits

Author SHA1 Message Date
Chris Rhodes
7f8369a45f Clean up status methods. 2018-02-08 21:00:24 -08:00
Daniel Thorpe
e8cd93cf15 Add a listening status method (#508)
* Bump to v0.17.0

* Add members from GuildMembersChunk to state (#454)

* Revert "Add members from GuildMembersChunk to state (#454)" (#455)

This reverts commit e4487b30d4.

* travis: update go versions

* Allowed setting the game to null.

* Allowed for setting status to listening.

* Changed variable names for better consistency

* Reverted updateStatus to maintain API compatibility, instead added now
UpdateListeningStatus method which directly calls UpdateStatusComplex.

* Fix version to 0.18.0-alpha

* Make the new UpdateListeningStatus read a bit better.

* Updated setting game to nil for better compatibility.

* Remove the explicit nil check, as no longer seems to be needed.

* Fix comment styling.

* Remove idle as unused.
2018-02-08 20:50:07 -08:00
Sebastian Winkler
e7e5f85367 adds default avatar generation to AvatarURL method (#488)
* adds default avatar generation to AvatarURL method

* converts discriminator string to integer in endpoints.go
2018-02-08 20:08:56 -08:00
Bruce
8d5ab59c63
Merge pull request #506 from dvrkps/patch-1
travis: update go versions
2018-01-31 18:25:41 -06:00
Bruce
156f776f95
Merge pull request #507 from CarsonHoffman/role-mention
Added Role.Mention function
2018-01-30 16:14:20 -06:00
Carson Hoffman
5765bb7804 Added Role.Mention function 2018-01-28 20:02:52 -05:00
Davor Kapsa
9c180babb1
travis: update go versions 2018-01-26 22:40:25 +01:00
Carson Hoffman
a0faf9a0d0 Removed unnecessary error check (#505) 2018-01-22 14:32:00 -08:00
Eric Wohltman
8591961512 Small update to supported Game Activity Types (#500) 2018-01-11 16:48:25 -08:00
Sebastian Winkler
18dfe540ad adds GuildAuditLog() (#504)
* adds GuildAuditLogs()

* adds missing comments to GuildAuditLog
2018-01-11 07:09:12 -08:00
Bruce Marriner
4a33b9bc7c Merge branch 'develop' and bump Version to v0.18.0 2017-12-27 21:24:50 +00:00
Bruce Marriner
b58212ae33 If there's an err, return it :) 2017-12-27 21:13:27 +00:00
Bruce Marriner
2c2b0166af Run tests vs Go 1.7, 1.8, and 1.9 2017-12-27 20:04:55 +00:00
Bruce Marriner
0d2878bac4 Remove tests against email/password. 2017-12-27 20:03:15 +00:00
Sebastian Winkler
e6ed3d579b adds support for animated emojis (#496) 2017-12-22 08:35:44 -08:00
psheets
e024d5f032 Add ChannelEditComplex (#493)
* Add ChannelEditComplex

* Fixed comment format

* gofmt

* Reverted permissions and fixed ChannelEditComplex

* Reverted Perms

* Delete discordgo - Shortcut.lnk

removed link

* Added ChannelID param to ChannelEditComplex

* gofmt
2017-12-14 21:59:07 -08:00
Anis B
4523c46927
Drop the default websocket close handler 2017-12-09 16:23:21 +01:00
Bruce
0003ae7dd2
Merge pull request #487 from Seklfreak/add-invite-unique-field
Adds the unique field to the invite struct
2017-12-03 20:28:53 -06:00
Bruce
ac871abd87
Merge pull request #486 from MrJohnCoder/patch-2
Fix typo
2017-12-03 20:14:07 -06:00
Sebastian Winkler
3c792b297c
adds unique field to invite struct 2017-12-03 09:38:01 +01:00
MrJohnCoder
294ab42061
Fix typo 2017-12-02 22:16:49 -05:00
Bruce
9bb722e4fe
Merge pull request #482 from vim2meta/develop
Several typo fixes.
2017-11-20 08:38:18 -06:00
vim2meta
396e868b36
Update main.go 2017-11-19 10:15:52 -05:00
vim2meta
1033558fcf
Update wsapi.go 2017-11-19 10:15:13 -05:00
vim2meta
86557619ba
Update voice.go 2017-11-19 10:14:45 -05:00
vim2meta
0e42acc5f5
Update structs.go 2017-11-19 10:13:54 -05:00
vim2meta
74a0038b63
Update restapi.go 2017-11-19 10:13:04 -05:00
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