Commit graph

77 commits

Author SHA1 Message Date
Chris Rhodes
64af0e5f4a Support TTS. Closes #67 2016-02-13 18:28:29 -08:00
Chris Rhodes
4a9689f953 Cleanup 2016-02-11 21:39:18 -08:00
Chris Rhodes
0344155b17 Support sending files. 2016-02-11 21:36:19 -08:00
Bruce Marriner
af52a8c822 Fix type, thanks KuroiKitsu 2016-02-07 20:47:33 -06:00
Bruce Marriner
edc09778a7 Linting. 2016-01-28 08:36:09 -06:00
Bruce Marriner
53db54ea8c Comment. 2016-01-27 23:41:44 -06:00
Bruce Marriner
21272c5460 no formatting directive in Errorf call 2016-01-27 23:34:57 -06:00
Chris Rhodes
5aab9dc685 Use an array of role ids 2016-01-27 09:45:14 -08:00
Chris Rhodes
b0188cd71e Support GuildMemberEdit api. 2016-01-27 01:37:43 -08:00
Bruce Marriner
654c78a419 Renamed GUILD_MEMBER_DEL endpoint to just GUILD_MEMBER 2016-01-19 08:56:48 -06:00
Chris Rhodes
1d9f97e283 Update New to allow an auth token to be specified. 2016-01-17 14:17:51 -08:00
Chris Rhodes
e2ab871e12 Fix colliding vars. 2016-01-17 11:59:22 -08:00
Chris Rhodes
3561ad1fa6 Add a LoginWithToken method which is a cheaper way to login. Closes #89.
Eventually we should consider allowing Login/LoginWithToken to mutate
s.Token, it would probably simplify the API a bit.
2016-01-17 11:13:02 -08:00
Chris Rhodes
a6a218d2fd Avoid a potential issue where State tracking was disabled and it would return a stale Guild. 2016-01-12 11:32:02 -08:00
Chris Rhodes
b4dfce0fee Add methods for grabbing guild images. Clean up some docs. 2016-01-12 11:14:51 -08:00
Chris Rhodes
fce9a7dedc Make unmarshal methods not on the struct, that was stupid. 2016-01-11 17:39:25 -08:00
Chris Rhodes
3acc68d3ef Fix wsapi 2016-01-11 17:22:37 -08:00
Chris Rhodes
f15b389ac8 Return a consistent JSON Unmarshal error. 2016-01-11 16:37:17 -08:00
Chris Rhodes
5b312ac464 Handle errors from Request. 2016-01-11 16:24:17 -08:00
Chris Rhodes
b26c168d94 Remove the userID param from UserSettings. 2016-01-11 12:17:53 -08:00
Bruce Marriner
6de9b19ac8 Merge branch 'develop' of https://github.com/bwmarrin/Discordgo into develop 2016-01-11 12:09:30 -06:00
Bruce Marriner
614ecda516 Fix Logout function. Closes #50 2016-01-11 12:06:25 -06:00
Chris Rhodes
d52e39a592 Move non @me methods higher, modify UserGuilds. 2016-01-10 21:23:15 -08:00
Chris Rhodes
918ee4205d Make User commands accessible only to @me 2016-01-10 21:20:19 -08:00
Chris Rhodes
00cd5cb178 Return an image.Image for user avatars. Also fix some missing pointer returns. 2016-01-10 19:36:52 -08:00
Bruce Marriner
4bdb631758 Initial, very basic, support for dealing with rate limits 2016-01-10 19:40:03 -06:00
Bruce Marriner
b5e45827fd Better error checking for New() and Gateway() funcs, closes #75 2016-01-10 19:01:34 -06:00
Bruce Marriner
3357c56626 Minor changes to Request() func, closes #73 2016-01-10 17:30:19 -06:00
Seth Moore
e755370170 Fix return type... 2016-01-10 10:50:08 -05:00
Seth Moore
054115bc89 Fix Login crash by returning immediately 2016-01-10 10:43:47 -05:00
Bruce Marriner
c2fd09c51d Fix error introduced by SHA: 30252123a0,
closes #66
2016-01-09 14:22:34 -06:00
Chris Rhodes
129832e3d5 Fix login token issue. 2016-01-08 13:58:56 -08:00
Chris Rhodes
0d7b6f7e76 Convert structs and api to use pointers. 2016-01-08 09:37:34 -08:00
Bruce
351f477135 Merge pull request #55 from Rivalo/develop
Add support for registering a new account, closes #49
2016-01-07 19:22:12 -06:00
Rivalo
46a8f39f38 Revert "Added UserVerify function"
This reverts commit 7179f550b4.
2016-01-08 02:01:06 +01:00
Bruce Marriner
50394ab954 Merge branch 'develop' of https://github.com/bwmarrin/Discordgo into develop 2016-01-07 13:50:55 -06:00
Bruce Marriner
301fb980d3 Updated copyright year, cleaned up some comments. 2016-01-07 13:50:44 -06:00
Bruce Marriner
d6314c034e Fixes for compatibility with Go 1.3, closes #56. 2016-01-07 13:28:33 -06:00
Rivalo
7179f550b4 Added UserVerify function 2016-01-07 19:44:50 +01:00
Rivalo
a6e3be7a36 Added register function 2016-01-07 19:00:35 +01:00
Bruce Marriner
f1775b9440 Removed comment. 2016-01-06 16:35:26 -06:00
Seth Moore
2d7ac3557a Prevent login crash by assuming a json.Unmarshal "just works" 2016-01-06 12:52:30 -05:00
Bruce
f2ccbd3522 Merge pull request #36 from iopred/bans
Modifications to GuildBanAdd, closes #29 #33.  Idiomatic improvements to ChannelMessages func.
2015-12-29 13:19:59 -06:00
Chris Rhodes
6400f08039 Modify GuildBanCreate to have a days param. Clean up ChannelMessage. 2015-12-29 10:29:10 -08:00
Bruce Marriner
57a5245657 Added support for setting channel permission overrides, closes #20 2015-12-29 10:24:19 -06:00
Chris Rhodes
f242890ade Update printf types for GuildBanCreateAndDeleteComments. 2015-12-28 21:00:38 -08:00
Chris Rhodes
093f97f2bc Implement GuildBanCreateAndDeleteComments 2015-12-28 20:53:00 -08:00
Chris Rhodes
e836b7a500 Rename GuildBanAdd to GuildBanCreate 2015-12-28 20:52:59 -08:00
Bruce Marriner
850901a5dc Updated ChannelMessageSend to reflect new mention method used by Discord, closes #9 2015-12-23 23:50:19 -06:00
Bruce Marriner
dfb0b891fd Added support functions for guild role fetching and management, closes #21 2015-12-23 20:09:16 -06:00