Commit graph

1348 commits

Author SHA1 Message Date
Julian Y
8713b45ae7
Create new VerificationLevel VerificationLevelVeryHigh
Closes #677
2019-08-03 23:48:24 -07:00
JurrijnP
f4f8cc09bc
Added more message types
Added Premium Guild Sub message types.
2019-08-02 20:06:45 +02:00
Jon Chen
dbe490a54a updates discord api invite link (#595) 2019-07-21 21:14:33 -07:00
Christopher F
66f4df19c8 faeture: add last_pin_timestamp to Channel struct (#596)
This resolves #547.

Adds a "LastPinTimestamp" field to the Channel structure, which reflects
the `last_pin_timestamp` field on the Discord API. This field is
indicative of whether or not the channel has any pinned messages, and
can save an API request from being sent if there are none.

FWIW, The API doesn't seem to return a 404 anymore when there are no
pinned messages; it returns a 200 with `[]`.
2019-07-21 21:12:21 -07:00
tsudoko
191dea097d Escape # in emoji IDs passed to reaction endpoints (#615) 2019-07-21 21:11:43 -07:00
JurrijnP
5fb15f5823 Add Pinned to Message struct (#633)
* 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.

* 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!

* travis: update go versions

* Add Pinned member to message struct

Pinned member was missing.

* Missed an :

* Update README.md

* Removed space
2019-07-21 21:10:35 -07:00
Sebastian Winkler
579121fe1a adds EndpointGuildIconAnimated; adds guild.IconURL() helper (#658) 2019-07-21 21:09:39 -07:00
yuko1225
d7c22e2791 Fix broken IP Discovery in voice connection. (#669)
https://github.com/bwmarrin/discordgo/issues/598
https://github.com/bwmarrin/discordgo/issues/668
2019-07-21 21:08:31 -07:00
Qais Patankar
d3c96d18be Fix #622: support for WebhookExecute msg response (#663) 2019-07-21 21:07:28 -07:00
diamond's alt
a6d2557a8e Added Asset and ApplicationAssets (#666)
Fixed ApplicationAssets returning the wrong type

Added Asset and ApplicationAssets
2019-07-21 21:06:20 -07:00
Simon
e405cbd54c handle empty channel id in ChannelVoiceJoinManual (#672) 2019-07-21 21:02:54 -07:00
recapitalverb
d19be02e42 Add Available field to Emoji struct (#676) 2019-07-21 21:02:28 -07:00
Sebastian Winkler
347a4f69b0 Add premium fields to Guild and Member (#656)
* adds premium fields to Guild and Member

* fixes formatting
2019-06-08 13:54:39 -07:00
Skippy
c52d70f86a
Merge pull request #654 from foxbot/issues/discordapp-967
fix: remove _trace from helloOp
2019-05-31 09:02:19 -05:00
Christopher Felegy
60dbc5557c fix: remove _trace from helloOp
As per discordapp/discord-api-docs#967, _trace in OP10 HELLO is no
longer an array of strings, but rather an undefined glob of data that
presently contains a mixed bag of strings and objects.

type helloOp does not seem to be exposed outside of the library, so this
is not a breaking change; furthermore, the Trace field of helloOp was
not used anywhere within the library. It seems like it would be safer to
just remove the field outright, rather than accept it as an interface{}
and waste cycles unmarshaling data that is never used.

This is a critically breaking bug, as if the upstream change is merged,
bots using DiscordGo prior to this patch will be unable to connect; an
error would occur when trying to unmarshal the new data glob into a
[]string, causing (*Session).Open() to prematurely return.
2019-05-29 13:54:56 -04:00
diamond's alt
7896167153 added useragent (#653) 2019-05-28 16:52:23 -07:00
Skippy
8d8906ce4b
Merge pull request #646 from NewWinter/patch-1
Add proper response type for GuildBans docs
2019-05-13 12:35:26 -05:00
Jesse
544e4b9a8c
Add proper response type for GuildBans docs
The previous documentation stated that the response type was an array of User structures, when the function return an array of GuildBan structures.
2019-05-12 19:14:27 -06:00
Skippy
2748413597
Merge pull request #545 from ikkerens/patch-1
Added copy of previous Message state to MessageUpdate
2019-04-19 10:37:06 -05:00
Skippy
95a8253ee1
Merge pull request #641 from Necroforger/develop
added SnowflakeTimestamp utility function
2019-04-12 12:44:12 -05:00
necro
e3acfe56f0 added SnowflakeTimestamp utility function to obtain the creation date of a discord snowflake ID 2019-04-12 11:19:31 -04:00
JurrijnP
c5ae321187 Add "Priority Speaker" permission as constant (#628)
* 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.

* 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!

* travis: update go versions

* Add "Priority Speaker" permission constant

The permission "Priority Speaker" was missing as constant. Permission has been added as constant and to the "PermissionAllVoice" constant as well.
2019-02-05 12:41:52 -08:00
Gregory DALMAR
624ff560d4 Merge remote-tracking branch 'upstream/master' 2019-02-01 15:00:32 +01:00
Skippy
4abf4d7de6
Merge pull request #620 from bitspill/patch-2
Update expired Discord API invite link
2018-12-03 15:05:24 -06:00
bitspill
62b450ec91
Update expired Discord API invite link 2018-12-02 18:35:46 -08:00
Krognol
d6d46b0b1b Fix spelling of synthetic (#613) 2018-11-08 10:04:07 -08:00
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
8325a6bf6d Merge branch 'develop' 2018-11-02 11:20:04 -07:00
Chris Rhodes
94c6dec686 Version 0.19.0 2018-11-02 11:19:32 -07:00
Chris Rhodes
efc05168c5 Merge branch 'develop' 2018-11-02 11:17:21 -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