Commit graph

1283 commits

Author SHA1 Message Date
Manfred Touron
2fe5745a4e
chore: add missing fields in User struct (#790)
based on https://discord.com/developers/docs/resources/user

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
2020-10-24 16:24:31 -04:00
Chris Rhodes
7ab242d361 Add State helper methods for reading permissions and role colors from Message roles. 2020-10-16 18:09:59 +11:00
Samuel Hunter
8c5ca3de95
Add banner to GuildParams struct (#735) 2020-08-25 10:42:45 -04:00
Aditya Diwakar
4b6abc53af
Add Guild Member Mute/Deaf Edit Support (#804)
*  Add member edit deaf/mute support

* Resolve omitempty issues
2020-08-12 10:24:33 -04:00
Aditya Diwakar
a2751f6d16
Add Go v1.15 in CI (#803) 2020-08-12 10:22:20 -04:00
zekro
b806975e3b
add user public flags field and public flag consts (#801)
* add user public flags field and public flag consts

* fix user flag constant initialization and vaalue documentation

* fix user flag constants values
2020-08-08 17:42:45 -04:00
Carson Hoffman
7b0771c3d7
Merge pull request #800 from adityaxdiwakar/master
Add support for news channels
2020-08-06 22:39:20 -04:00
Aditya Diwakar
b7ef3c8e0f Handle error in ChannelNewsFollow 2020-08-06 19:31:43 -04:00
Aditya Diwakar
8648632fc8 Comment ChannelFollow struct 2020-08-05 19:02:11 -04:00
Aditya Diwakar
eb70c17733 Add support for retrieving Webhook ID 2020-08-05 18:54:12 -04:00
Aditya Diwakar
10195fcfbb Add support for news channels
Endpoint support added:
- @/channels/:id/messages/:id/crosspost - publishes a message in a news
  channel to followers
- @/channels/:id/followers - follows a news channel
2020-08-05 18:31:38 -04:00
Carson Hoffman
df57973efe
Merge pull request #796 from iopred/master
Update Emoji endpoints to point to the CDN.
2020-07-27 22:29:11 -04:00
Chris Rhodes
cecb79f8d5 Update Emoji endpoints to point to the CDN. 2020-07-27 21:17:05 +00:00
Carson Hoffman
befbea878e
Bump version to v0.22.0 2020-07-25 22:18:54 -04:00
Carson Hoffman
f7cb976b19
Merge branch 'develop' (for the last time!) 2020-07-25 22:18:13 -04:00
Carson Hoffman
56905d9db3
Remove references to develop branch 2020-07-25 22:09:24 -04:00
Carson Hoffman
c8139ccde3
Merge pull request #794 from redbluescreen/webhook-allowedmentions
Add AllowedMentions for webhooks
2020-07-25 17:42:26 -04:00
redbluescreen
ea94122b57
Add AllowedMentions field to WebhookParams 2020-07-23 19:11:21 +03:00
Carson Hoffman
498ed48e63
Drop Go 1.10 support in Travis 2020-07-22 12:34:10 -04:00
Carson Hoffman
72b6e0d4d2
Add Go 1.14, force module support in Travis 2020-07-22 12:31:24 -04:00
Carson Hoffman
38819ecd8e
Add barebones voice receive example 2020-07-21 21:47:59 -04:00
Carson Hoffman
84edff87fe
Remove obsolete examples 2020-07-18 11:57:58 -04:00
Carson Hoffman
0d776e61a1
Add use of intents to examples 2020-07-18 11:57:24 -04:00
Carson Hoffman
928baab30a
Merge pull request #786 from robbiet480/patch-1
Emoji improvements
2020-06-28 19:51:24 -04:00
Robbie Trencheny
4738844e34
Rename GuildEmoji to GuildEmojis 2020-06-28 16:02:02 -07:00
Robbie Trencheny
f193d81d83
Add GuildEmoji function 2020-06-28 16:01:21 -07:00
Robbie Trencheny
f067059526
Update Emoji struct 2020-06-28 16:01:20 -07:00
TroyDota
9ce4a230c8
Updates API (#785)
* Update to API

Updates the golang stuct to current api documentation and adds new util

* Revert of change.

* Update message.go

* Update structs.go

* Yikes this my hand hurts.

* Consistency

* Update message.go
2020-06-28 18:53:46 -04:00
Dylan Meador
9c46cf4ec7
Update GuildMemberMove to support removing from all voice channels (#789) 2020-06-28 18:34:50 -04:00
Carson Hoffman
cab170c8f5
Add types to untyped constants 2020-06-28 16:57:51 -04:00
Ravy
c78bd2c24c
Add team data to applications (#787)
* add Team and TeamMember structs

* correct indentation

* consistency in the documentation

* fix data type for membership status

* enumerate the MembershipState

* make the linter happy

Co-authored-by: Ravy <ravy@farfrom.earth>
2020-06-28 16:50:55 -04:00
Carson Hoffman
09bac5d032
Change to develop version 2020-06-28 16:38:58 -04:00
Carson Hoffman
eb3514551b
Bump version to v0.21.1 2020-06-21 08:06:30 -04:00
Carson Hoffman
cead8c70f6
Fix double commit on merge 2020-06-20 22:51:20 -04:00
Carson Hoffman
1294b313b9
Release version v0.21.0 2020-06-20 20:58:22 -04:00
Carson Hoffman
096fd806a7
Track presences from GuildMembersChunk 2020-06-20 20:32:32 -04:00
Carson Hoffman
103055d2be
Add presences field to RequestGuildMembers 2020-06-20 19:55:19 -04:00
NANI
9b1ba78bc6
Adding millisecond precision to SnowflakeTimestamp utility (#732)
* Millisecond precision

* formatting

* Update util.go

* remove unnecessary int64

* Add unit test for SnowflakeTimestamp

Co-authored-by: NANI <nani@ksoft.si>
Co-authored-by: Carson Hoffman <c@rsonhoffman.com>
2020-06-16 23:43:34 -04:00
Carson Hoffman
bfbd4bc5c3
Merge pull request #763 from lukasz-horonziak/intents
Basic support for Gateway Intents
2020-06-16 23:06:07 -04:00
b-o-r-k
a853557f4d
Add missing fields in GuildChannelCreateData (#782)
According to https://discord.com/developers/docs/resources/guild#create-guild-channel, the endpoint also accepts the following fields:

- rate_limit_per_user: integer
- position: integer
2020-06-15 11:14:01 -07:00
Łukasz Horonziak
ee7a5ae519 Add missing comments 2020-06-11 12:26:34 +02:00
Carson Hoffman
1d8aef5e9c
Merge pull request #781 from RoJamieson/develop
Changed "consistancy" to "consistency" in logging.go
2020-06-08 22:23:22 -04:00
RoJamieson
42fd45c4a3 Changed "consistancy" to "consistency" in logging.go 2020-06-08 14:01:37 +02:00
Carson Hoffman
ca64123b05
Merge branch 'member-chunk-fields' into develop 2020-05-25 11:46:55 -04:00
Carson Hoffman
02ff40642c
Merge pull request #764 from bwmarrin/allowed_mentions
Add allowed mentions functionality
2020-05-25 11:26:48 -04:00
Łukasz Horonziak
0e6ec53738 Move MakeIntent method 2020-05-24 09:44:33 +02:00
Łukasz Horonziak
de7803becd Refactor 2020-05-24 08:34:29 +02:00
Carson Hoffman
a7305dd7b7
Stop voice re-connection on manual disconnection 2020-05-19 23:06:59 -04:00
Łukasz Horonziak
57c962912e Make intents optional field 2020-05-17 19:52:52 +02:00
Carson Hoffman
f5c33ab5c3
Add ChunkIndex and ChunkCount fields to GuildMembersChunk 2020-05-16 11:26:48 -04:00