Commit graph

1359 commits

Author SHA1 Message Date
Haze Booth
97726fe5b6
Fix typo in ErrorEmbedDisabled 2019-09-28 03:34:22 -04:00
tuckerrrrrrrrrrrr
bc6197c5e6 fix inconsistent tts casing 2019-09-10 18:09:24 -07:00
bwmarrin
638303f174
Merge pull request #680 from jyap808/patch-1
Create new VerificationLevel VerificationLevelVeryHigh
2019-08-26 15:53:29 -05:00
bwmarrin
5667d21687
Merge pull request #681 from jyap808/patch-2
Modify GuildEdit bounds check
2019-08-26 15:53:21 -05:00
bwmarrin
4d7add56b0
Merge pull request #682 from eest/synthetic_typo
Typo: sythetic -> synthetic
2019-08-26 14:58:56 -05:00
bwmarrin
1d90c5da95
Merge pull request #679 from JurrijnP/develop
Add Premium Guild Subscription message types & Add Channel Types.
2019-08-26 14:50:03 -05:00
JurrijnP
05bae35ddb
Add 1 more message type 2019-08-19 10:55:59 +02:00
recapitalverb
7d04e7dfb3 Remove State fallback from Session#Guild 2019-08-09 20:59:46 +07:00
Patrik Lundin
e36ed7520e Typo: sythetic -> synthetic 2019-08-07 08:15:07 +02:00
JurrijnP
b8638c0363
Add Channel Types 2019-08-04 10:44:25 +02:00
Julian Y
792b209680
Modify GuildEdit bounds check 2019-08-04 01:28:49 -07:00
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