Commit graph

1109 commits

Author SHA1 Message Date
robbix1206
aca3f3898c Remove code duplication in ChannelVoiceJoin (#611) 2018-11-05 17:37:18 -08:00
Chris Rhodes
e184c57068 Discord v0.20.0-alpha 2018-11-02 11:22:31 -07:00
Chris Rhodes
94c6dec686 Version 0.19.0 2018-11-02 11:19:32 -07:00
Chris Rhodes
a040eaef9b Version 0.18.0 2018-11-02 11:13:46 -07:00
Chris Rhodes
9b7b311486 Add go module support 2018-11-02 11:12:51 -07:00
Chris Rhodes
b86482cd77 Backport retrieving Guilds from State to develop. Fix bugs when Guild is Unavailable 2018-11-02 10:37:52 -07:00
Soumil07
412fc067e6 Add WebhookID member to message property (#607)
* track membercount on memberAdd and leave

* requested changes

* add WebhookID member to message
2018-10-26 07:57:14 -07:00
Robert M
797adeefde Fixed travis test failing for older versions of go (#604)
* Fixed travis test failing for older versions of go

* changed supported go version
2018-10-24 15:15:31 -07:00
Soumil07
8fb9c2a11d track membercount on memberAdd and leave (#602)
* track membercount on memberAdd and leave

* requested changes
2018-10-24 08:30:37 -07:00
Connor Wright
c8554477e4 Add HeartbeatLatency method (#593)
* Latency method

* fixed typo

* fixed linter error

* Renamed Latency to HeartbeatLatency

* HeartbeatLatency now returns time.Time

* return time.Duration instead, since .Sub() returns that

* Add full-stops to end of comments
2018-09-26 13:22:21 -07:00
Sebastian Winkler
6d2c944ad6 adds rate_limit_per_user to ChannelEdit (#585) 2018-09-20 12:38:28 -07:00
Bruce Marriner
8dc444f78a Moved noisy heartbeat logs to Debug 2018-08-31 14:26:02 +00:00
Necroforger
27581e260f Add PermissionManageWebhooks and PermissionManageEmojis to PermissionAll (#580) 2018-08-30 17:08:21 -07:00
Skippy
32167eae71
Merge pull request #546 from ikkerens/patch-2
Added GuildChannelCreateComplex
2018-08-27 11:29:35 -05:00
Skippy
c53a1b54c9
Merge pull request #578 from foxbot/feature/manual-voice-connection
feature: add ChannelVoiceJoinManual
2018-08-27 11:19:19 -05:00
Bruce Marriner
e7ec3c1e37 Fix a typo. 2018-08-27 15:37:58 +00:00
Bruce Marriner
10be6053b9 Merge branch 'develop' of https://github.com/bwmarrin/discordgo into develop 2018-08-27 15:36:04 +00:00
Skippy
70fa40c872
Merge pull request #491 from cookkkie/patch-1
Drop the default gorilla websocket close handler
2018-08-27 10:33:16 -05:00
Christopher F
a089b52f64 feature: add ChannelVoiceJoinManual
This resolves #577.

ChannelVoiceJoinManual is a wrapper over sending an OP4 to Discord, for
initiating a voice server connection. The library's builtin voice
connection management locks/maps are skipped, and the library will not
attempt to manage this voice connection.

Users are expected to hook the VoiceServerUpdate event and forward the
data to an outside voice manager, such as Lavalink.
2018-08-22 21:04:44 -04:00
Skippy
56e4d6a57b
Merge pull request #562 from Necroforger/member_mention
Add Member.Mention
2018-08-22 19:56:39 -05:00
Skippy
2cc0417697
Merge pull request #366 from jD91mZM2/1
STOP USING PRINTF PLS
2018-08-22 19:50:27 -05:00
Skippy
ccd2c6b3f2
Merge pull request #566 from santichu95/patch-2
Update Disconnect() comment
2018-08-22 19:46:32 -05:00
Skippy
be13e4d0cd
Merge pull request #567 from Fogapod/Fogapod-patch-1
Remove redundant line
2018-08-22 19:45:26 -05:00
Skippy
25b80afaab
Merge pull request #570 from pixelrazor/develop
Changed Member.JoinedAt to type Timestamp
2018-08-22 19:43:43 -05:00
Bruce Marriner
22c5f24532 Fixed a couple of error msgs 2018-08-23 00:33:57 +00:00
Sebastian Winkler
0af46d54e7 adds support for Webhooks Update event (#561) 2018-08-19 12:43:41 -07:00
Qais Patankar
34307e9a0b Add ErrCodeUnknownWebhook (#573) 2018-08-18 09:10:18 -07:00
Martín (Netux) Rodríguez
38d030aaed endpoints(): add EndpointEmojiAnimated (#572) 2018-08-17 11:52:12 -07:00
Unknown
9c1fd5d8a9 Changed Member.JoinedAt to type Timestamp
It was previously just string, but has been updated to be consistent with the other structs.
2018-07-31 15:32:29 -05:00
Rens Rikkerink
1593c55523 Added .MessageFormat() to emoji struct (#569)
* Added .ChatName() to emoji struct

* Renamed ChatName to MessageFormat

* Fix lint
2018-07-31 11:36:58 -07:00
Eugene
82be39a218
Remove redundant line
s.StateEnabled variable already set to true above
2018-07-25 12:00:40 +03:00
Chris Rhodes
d6e795c573
Make sure MemberCount isn't stomped when Guilds are added. 2018-07-23 20:09:49 -07:00
Santiago Andaluz
fbfba5b969
Update Disconnect() comment
It looks like dgo has moved away from ChannelVoiceLeave ever since discord allows bot to connect to more than one channel. Confusing comment seeing that it is very hard to find information about the function that it mentions.
2018-07-05 13:46:54 -05:00
necro
e5c968d7a6 Add Member.Mention 2018-06-23 16:06:45 -04:00
Altarrel
d7a58a4f11 Minor spelling fixes (#559) 2018-06-18 13:42:32 -07:00
Bruce
bc7403812a
Merge pull request #558 from Seklfreak/add-create-channel-invite-unique-field
Adds support for the Unique field to ChannelInviteCreate
2018-06-11 09:58:56 -05:00
Sebastian Winkler
6f45ea3535
adds Unique field to ChannelInviteCreate 2018-06-08 14:25:06 +02:00
Aaron Meese
67729f3d95 Update README.md (#542)
Added hyphens to bullet points to make them match the 'Special Thanks' style and a proper comma
2018-06-06 18:29:09 -07:00
Cory Ory
e28d444422 Add userlimit to the channel struct (#557) 2018-06-06 18:20:03 -07:00
Bruce
003b7cafd1
Merge pull request #555 from shawntoffel/locale
#554 Added locale to user struct
2018-05-29 21:49:06 -05:00
Shawn Toffel
703389b219
#554 Added locale to user struct 2018-05-30 00:04:52 +00:00
Chris Rhodes
bb42325c3a
Add an explicit log and error for when a request is attempted with an unauthorized token that is not a bot token. (#553) 2018-05-26 16:52:00 -07:00
Bruce
adc6a99c3d
Merge pull request #551 from Seklfreak/add-emoji-methods
adds GuildEmojiCreate, GuildEmojiEdit, and GuildEmojiDelete
2018-05-24 09:08:06 -05:00
Bruce
ab79149c74
Merge pull request #552 from Seklfreak/add-get-invite-with-count
adds InviteWithCounts
2018-05-24 09:07:25 -05:00
Sebastian Winkler
9aae26445f
adds InviteWithCounts 2018-05-23 16:27:14 +02:00
Sebastian Winkler
1bf986726a
fixes comments 2018-05-20 14:40:55 +02:00
Sebastian Winkler
8f686efd24
adds GuildEmojiCreate, GuildEmojiEdit, and GuildEmojiDelete 2018-05-20 14:37:02 +02:00
Rens Rikkerink
80ac382641
Added GuildChannelCreateComplex 2018-05-09 14:55:49 +02:00
Dim
82c8cf21b2 Add GuildID to multiple structs (#541) 2018-05-02 17:07:23 -07:00
Bruce
2bc32439c4
Merge pull request #539 from mroseman95/fix-typo-oauth2-test
fixed small typo in oauth2_test.go
2018-04-25 20:34:28 -05:00