Commit graph

923 commits

Author SHA1 Message Date
AAAAAAAAAAA
eed1d20f1a Fix presence unmarshal with game names as numbers (#381)
* Game name is also not validated on the server

* Use json.Number instead
2017-05-08 08:32:00 -07:00
legolord208
aa3973f956 Made error constants (Fixed #315) (#377) 2017-05-08 06:48:19 -07:00
legolord208
25c8012990 Added missing permission constants (#378) 2017-05-08 06:43:50 -07:00
Rinzen Necroforger
f539136306 Add Presence Tracking to State (#371)
* Add Presence tracking to the state

* Do not need to check if Roles and Game is nil

* Append presence to guild.Presences if not found
2017-05-04 07:00:59 -07:00
Bruce
5e2c93b4f1 Added warning to New/Login functions fixes #342 2017-05-03 21:47:57 +00:00
legolord208
2b80b35528 ChannelFileSendWithComplex (#370)
* ChannelFileSendWithComplex

* Moved to ChannelMessageSendComplex

* Oops

* Return consistency

* Re-used variable

* Omit empty
2017-05-01 07:50:49 -07:00
jonas747
4fb7760b59 Added reason go GuildBanCreate (#367)
* Added reason go GuildBanCreate

* Added GuildBanCreateWithReason
2017-04-28 18:41:48 -07:00
Chris Rhodes
7b62921b4e Pedantic comment updates. 2017-04-28 12:30:00 -07:00
Ammar Bandukwala
e58e61b0ff add Tag method to user (#364)
* add Tag method to user

* change format verb to %s

* use consistent string forming
2017-04-28 12:29:20 -07:00
legolord208
5cc4af9aa2 Chaining ChannelMessageEditComplex (#365)
* Chaining ChannelMessageEditComplex

* Removed .Do()
2017-04-28 12:24:38 -07:00
legolord208
43c8b518ad Added user notes (#361)
* Added user notes

* Added note websocket event (thanks iopred :D)

* Added ready event (thanks again, iopred)

* Renamed function
2017-04-28 12:22:02 -07:00
Bruce
2a4314dbdc Merge pull request #363 from Lord-Ptolemy/develop
Fixed grammatical error in restapi.go docs
2017-04-28 14:24:43 +00:00
Lord-Ptolemy
be3675c2c2
Fixed grammatical error 2017-04-27 21:27:35 -04:00
LEGOlord208
65f0cb9f73 Arise error when user has 2FA (#359)
* Arise error when user has 2FA

* Fixed error message

* Removed ticket
2017-04-18 21:35:17 -07:00
Bruce
17b21b989c Merge branch 'develop' of https://github.com/bwmarrin/discordgo into develop 2017-04-18 14:05:02 +00:00
Bruce
569ebc1477 Little README lovin' ❤️ 2017-04-18 14:04:39 +00:00
Chris Rhodes
691040e745 Generate MessageReactionRemoveAll handler. 2017-04-15 11:14:39 -07:00
Floretta
db909b14fa add: MessageReactionRemoveAll event (#357) 2017-04-15 09:07:59 -07:00
LEGOlord208
9b9f289415 How about no? (#356)
I don't know why somebody would do something this inefficient, but I think plain concatination is a better approach
2017-04-14 09:07:36 -07:00
Bruce
3aa7eadbf8 Fix avatar usage example, spaces are important too. 2017-04-14 14:10:09 +00:00
Bruce
5fcb5fa7eb Correct appmaker readme usage example 2017-04-14 14:08:58 +00:00
Bruce
65232ca5ef Slight improvement to airhorn example description 2017-04-14 14:05:28 +00:00
Bruce
e16cb509c2 Consolidated avatar examples to one, cleaned it up. 2017-04-14 14:02:37 +00:00
Bruce
7044ac3441 username can be omitted on UserUpdate 2017-04-14 14:00:25 +00:00
Bruce
2953721ea0 Removed new_basic example. See pingpong instead :) 2017-04-13 15:41:38 +00:00
Bruce
684a3321ab Merge branch 'develop' of https://github.com/bwmarrin/discordgo into develop 2017-04-13 15:23:45 +00:00
Bruce
1c719249a1 Clean up comments, better blocking code. 2017-04-13 15:22:58 +00:00
Bruce
2b282540ef Updated airhorn readme file 2017-04-13 14:54:34 +00:00
LEGOlord208
7bcc0fbaca Added more fields (#354)
* Added more fields

* Fixed error

* Yep ok
2017-04-11 21:51:24 -07:00
Bruce
f05856893b Updated MyToken example code and readme. 2017-04-11 15:06:46 +00:00
Bruce
8da6f76c9c Fix markdown link 2017-04-11 14:47:49 +00:00
Bruce
f60eda8bcb Add missing fields to Application struct 2017-04-10 21:07:04 +00:00
Bruce
ba9606f415 Update readme to match changes to example. 2017-04-10 21:06:43 +00:00
Bruce
d1c23ecb09 Clean up example.
Remove the email/pass login option.  Change display to show all fields
of the Bot/App struct.
2017-04-10 21:05:33 +00:00
Bruce
abc85a2de0 Improve comments, better wait for CTRL-C method. 2017-04-10 16:36:05 +00:00
Bruce
16798cdf11 Updated Readme. 2017-04-10 16:28:10 +00:00
Bruce
8b67603145 Clean up readme. 2017-04-10 16:27:22 +00:00
Bruce
98779bc3b9 Update readme. 2017-04-10 16:14:29 +00:00
LEGOlord208
851e8d3581 SendContent (#352)
* SendContent

* Fixed error...?

* Commented

* Yep let's do that

* Oops

* Oki

* Whatever you say, Travis... :<

* Omit them empty structs
2017-04-09 21:47:32 -07:00
LEGOlord208
fea42d937a ChannelMessageSendComplex (#349)
* ChannelMessageSendComplex

* ChannelMessageEditComplex

* I am a murderer.

* Travis didn't like that.

* I can't spell
2017-04-07 20:15:31 -07:00
Ammar Bandukwala
52ad9e2feb add String() method to User (#350)
* add String() method to User

* put User def in it's own file

* remove usage of t.Run for support w/ older Go versions
2017-04-07 08:19:48 -07:00
Bruce
253456549c Merge pull request #348 from LEGOlord208/patch-1
It's not bot only though...
2017-04-05 08:00:36 -05:00
Bruce
5814f11e44 Merge pull request #347 from tsdtsdtsd/readme-headline-fix
Fixed readme headline
2017-04-05 07:52:11 -05:00
LEGOlord208
a08cbd9ba7 It's not bot only though... 2017-04-05 14:46:35 +02:00
tsdtsdtsd
06b45b4ad2 fixed headline 2017-04-05 00:03:35 +02:00
John
17819ac7c6 Fix README format (#344) 2017-03-28 06:56:23 -07:00
jonas747
c26f14d3b6 Replace global ratelimit bucket with atomic (#343) 2017-03-26 19:46:34 -10:00
Alexander
2e65ecdbb9 Fixed casing for JSON tag for Avatar field on User struct (#339)
When marshalling a user back to JSON, this results in inconsistently cased JSON fields.
2017-03-16 07:05:54 -10:00
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