Commit graph

1254 commits

Author SHA1 Message Date
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
Noah Santschi-Cooney
69edfdf4ac
discordapp.com -> discord.com (#772)
Change API URL from discordapp.com to discord.com
2020-05-08 21:26:13 -04:00
Carson Hoffman
b7d79c80d6
Merge pull request #771 from bwmarrin/revert-769-master
Revert "Changed domain from `discordapp.com` to `discord.com`"
2020-05-07 12:28:30 -04:00
Carson Hoffman
45124d8303 Revert "Changed domain from discordapp.com to discord.com (#769)"
This reverts commit f4ca8874a3.
2020-05-07 12:27:07 -04:00
Hunter Paulson
f4ca8874a3
Changed domain from discordapp.com to discord.com (#769)
* Allow resume on reconnect

* Version 0.20.3: allow resume on reconnect

* Update index.md

* Update README.md

* Update GettingStarted.md

* Update endpoints.go

* Update README.md

* Update event.go

* Update wsapi.go

* Update restapi.go

* Resolved spelling issue

Co-authored-by: Carson Hoffman <c@rsonhoffman.com>
2020-05-04 21:13:28 -07:00
Tobias Messner
db7a34f303
Fix typo in PingPong example (#767) 2020-04-30 14:22:18 -07:00
bwmarrin
2eedf63f8a
Merge pull request #765 from ewohltman/fix-godoc-comments
Fix godoc style exported function comments
2020-04-27 10:11:26 -05:00
Eric Wohltman
44c2b25369 Fix godoc style exported function comments 2020-04-21 08:16:51 -04:00
Łukasz Horonziak
d12e6550c6 Typos 2020-04-19 17:36:35 +02:00
Carson Hoffman
895df5370c
Add allowed mentions 2020-04-19 10:29:47 -04:00
Łukasz Horonziak
349da37386 Refactor 2020-04-19 11:11:41 +02:00
Łukasz Horonziak
757302eb78 Add intents 2020-04-18 22:31:38 +02:00
Carson Hoffman
84ad2a796d
Merge pull request #760 from ewohltman/websocket-error-log-level
Change log level for websocket connection failure from warning to error
2020-04-12 23:13:52 -04:00
Carson Hoffman
ed4d690496
Version 0.20.3: allow resume on reconnect 2020-04-11 23:10:35 -04:00
Carson Hoffman
aba3c0c056
Allow resume on reconnect 2020-04-11 23:07:03 -04:00
Carson Hoffman
d8b49998f8
Merge pull request #761 from bwmarrin/reconnect-fix
Allow resume on reconnect
2020-04-11 23:05:08 -04:00
Carson Hoffman
1789227299
Allow resume on reconnect 2020-04-11 22:34:49 -04:00
Eric Wohltman
3fa12df9f0 Change log level for websocket connection failure from warning to error 2020-04-07 14:00:36 -04:00
Eric Wohltman
3736887e9b
Bitwise view channel permission (#758)
* Fix offset for PermissionViewChannel

* Fix offset for PermissionViewChannel
2020-04-06 11:00:23 -07:00
Eric Wohltman
0a159acc0c
Fix offset for PermissionViewChannel (#757) 2020-04-06 09:50:24 -07:00
bwmarrin
e9dc1e7d97
Merge pull request #756 from ewohltman/bitwise-view_channel-permission
Add bitwise permission const PermissionViewChannel
2020-04-02 14:24:00 -05:00
Eric Wohltman
e66f73bf50 Update compound permission sets to use PermissionViewChannel 2020-04-01 10:05:24 -04:00
Eric Wohltman
e83cac31da Add PermissionReadMessages deprecated comment 2020-04-01 10:00:26 -04:00
Eric Wohltman
e26e635684 Add bitwise permission const PermissionViewChannel 2020-04-01 08:04:42 -04:00
Cameron Wood
abf56b54f8
Added Presences field for GuildMembersChunk (#755) 2020-03-29 11:23:11 -07:00
bwmarrin
9499577a76
Merge pull request #748 from fsufitch/master
Add clarifying docs for using an OAuth2 token
2020-03-16 15:06:39 -05:00
Filip Sufitchi
edf402529a Add clarifying docs for using an OAuth2 token 2020-03-11 16:14:48 -04:00
bwmarrin
53f194f13f
Merge pull request #743 from sschiz/deleted-message
add getting deleted message
2020-03-02 10:32:42 -06:00
Alexander
97c5e2f7dc
state: add filling out BeforeDelete before deleting message 2020-03-01 20:57:44 +03:00
Alexander
d41f0ec7e0
events: add BeforeDelete to MessageDelete 2020-03-01 20:57:44 +03:00