Commit graph

82 commits

Author SHA1 Message Date
JurrijnP
05bae35ddb
Add 1 more message type 2019-08-19 10:55:59 +02:00
JurrijnP
f4f8cc09bc
Added more message types
Added Premium Guild Sub message types.
2019-08-02 20:06:45 +02: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
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
Dim
82c8cf21b2 Add GuildID to multiple structs (#541) 2018-05-02 17:07:23 -07:00
Carson Hoffman
964060f34c General documentation improvements 2018-03-14 14:57:40 -04:00
Wim
ffa9956c9b Fix role mention replacement (#509)
* Fix role mention replacement

* Fix message test too
2018-02-14 15:05:22 -08:00
Bruce
06b35cfe24 Linting. 2017-09-03 20:01:46 +00:00
legolord208
7bb0965a6f Updated to v6 (fixes #408) (#410)
* Updated to v6

* Unified websocket and REST version
2017-07-22 06:17:39 -07:00
legolord208
5a02430c02 ContentWithMoreMentionsReplaced for roles and nicks (Fixes #208) (#375)
* ContentWithMentionReplaced on roles and nicks (Fixes #208)

* Compatibility

* Like this? 🤔

* More efficient regexp

* Tweaked a little

* Tweaked a little more

* Tweaked even more

* Removed unessecary crap condition that is useless

* Disallow voice channel

* Moved regexp declaration
2017-06-13 08:49:41 -07:00
rfw
874325a504 Add and fix support for multiple file uploads via ChannelMessageSendComplex via the new field MessageSend.Files. (#391)
For compatibility with existing library consumers, the File field is retained but will behave as if Files contained that single file. If both are specified, ChannelMessageSendComplex will return an error.

The message JSON payload is moved to a form-data field called `payload_json`, instead of set in multipart form data. This is supported and the recommended way, as per the API docs.

Apparently, you can attach multiple files if you just name the parts names differently in the multipart request. The parts are named here using the order the files were specified, as `file%d`. This is not documented in the API docs, but definitely works.

This also removes serialization of the File field via json.Marshal, as it will never be directly serialized in the JSON. The new field, Files, is similarly not marshaled.

This additionally adds a ContentType field in File, which can be used to specify the content type of the attached file. The ContentType field will default to setting the header to `application/octet-stream` if empty. Discord currently doesn't do much with the Content-Type header, but we should pass this information along anyway in accordance to the MIME standard.
2017-06-10 13:13:28 -07: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
legolord208
5cc4af9aa2 Chaining ChannelMessageEditComplex (#365)
* Chaining ChannelMessageEditComplex

* Removed .Do()
2017-04-28 12:24:38 -07: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
Chris Rhodes
c96162c425 Add support for Message Reactions. 2016-11-03 22:07:06 -07:00
Chris Rhodes
ee3e500749 Add webhook support. 2016-11-03 19:41:57 -07:00
uppfinnarn
0c11cae782 Timestamp type; a string with a Parse() function
Closes #204
2016-07-28 21:16:10 +02:00
Chris Rhodes
96bcdc00a5 Replace multiple replaces with one regex replace. 2016-05-03 20:51:04 -07:00
Bruce
2136202ea9 Merge pull request #188 from jonas747/develop
Add mention_roles
2016-04-30 07:48:24 -05:00
jonas747
421496531a Add mention_roles 2016-04-30 04:38:05 +02:00
Chris Rhodes
98bf6b57d3 Replace stupid nicknames. 2016-04-29 19:03:14 -07:00
Chris Rhodes
24e7f04e0e Add support for GuildEmbed and GuildIntegration endpoints. 2016-04-22 11:34:04 -07:00
Bruce Marriner
1a672823a2 Lint and Cleanup 2016-04-11 18:54:19 -05:00
Bruce Marriner
9b8e880744 Optimized some structs to reduce their runtime size. 2016-01-28 11:10:12 -06:00
Chris Rhodes
0f38b22ca1 Message state tracking. 2016-01-16 00:20:41 -08:00
Chris Rhodes
735b01b158 Embeds. 2016-01-10 22:12:45 -08:00
Chris Rhodes
a639011a06 Add attachments fields. 2016-01-10 21:39:18 -08:00
Chris Rhodes
28d1f63219 Missed one 2016-01-08 10:05:48 -08:00
Chris Rhodes
ea33680562 Merge remote-tracking branch 'bwmarrin/develop' into pointers 2016-01-08 09:40:56 -08:00
Bruce Marriner
831fb29915 Moved Message struct and related structs into message.go 2016-01-08 10:33:29 -06:00
Bruce Marriner
7fc9331e04 Created message.go to store code related to the Message struct. 2016-01-08 10:29:01 -06:00