mavolin
eb118dc1d6
Discord: add Message.ReferencedMessage and InlinedReplyMessage
2020-11-03 10:14:53 -08:00
Maximilian von Lindern
607250ae55
Gateway: Added reconnect timeout; fixed UA ( #154 )
...
* Gateway: use gateway version 8
* API: remove old v0.0.1 version tag
* Discord: fix typos
* Gateway: add timeout
* Gateway: revert to returning errors on ReconnectCtx
2020-10-30 13:41:04 -07:00
diamondburned
108913b701
Discord: OverwriteType to accept numbers both stringed and not
...
Because Discord is so incompetent that they can't even handle 1s and 0s
in JSON, we can't really predict when they quote a number and when they
don't, because as it turns out, the documentation does not cover all
cases.
This commit adds a JSONUnmarshaler into OverwriteType to always trim the
quotes around then parse the number manually.
2020-10-29 13:25:03 -07:00
diamondburned
21ac7972fa
Discord: Renamed guild_const.go to guild_consts.go for correctness
2020-10-29 13:21:02 -07:00
diamondburned
75df94d9f4
*: Migrated Go Modules to v2
2020-10-28 15:39:59 -07:00
diamondburned
6183068c4d
Discord: Fixed incorrect OverwriteType string rules
2020-10-28 15:34:14 -07:00
diamondburned
795cbdef53
Discord: Fixed redundant and broken OverwriteType
2020-10-28 14:49:30 -07:00
diamondburned
994ddca1e1
Discord: Updated the Presence struct to be smaller
...
This commit omits a few fields in the Presence struct in accordance to
the new v8 structures.
Removed roles, premium_since, and nick
2020-10-28 14:39:44 -07:00
diamondburned
d405cc22b7
Discord: Embed fields deprecated
2020-10-28 14:13:19 -07:00
diamondburned
7a757209c2
Discord: Minor changes in Overwrite for v2
...
This commit changes the Overwrite type to omit the old "_new" API and
use the new field names, which are striings-serialized. The
OverwriteType is now also a strings-serialized number.
2020-10-28 14:08:29 -07:00
diamondburned
8aa60ebf8e
*: Removed the Game field
...
The Activities field should now be used. Access the first element.
2020-10-28 14:01:08 -07:00
mavolin
647efb8030
Discord: add Mention method to mentionable Snowflakes
2020-09-24 11:54:45 -07:00
mavolin
5acf9f3f22
Discord: fix invalid role mention generation
2020-08-24 16:32:51 -07:00
diamondburned
87c648ae1d
Discord: ParseSnowflake now uses ParseUint
2020-08-19 21:53:22 -07:00
Maximilian von Lindern
a7e9439109
Discord/API: implement changes to permission, allow and deny fields ( #141 )
2020-08-17 17:10:43 -07:00
mavolin
2a032ebfab
Discord: add watching activity
2020-08-03 17:46:04 -07:00
Maximilian von Lindern
1585797b52
*: Linting and typo fixes ( #134 )
...
* Linting and typo fixes
* Linting and typo fixes
* revert comma fix
2020-07-29 16:58:33 -07:00
Maximilian von Lindern
908ef96089
Discord: Uint64 typed Snowflakes ( #132 )
...
* Use typed Snowflakes if possible
* Discord: make Snowflakes uint64
* Fix errors that emerged because of new typing
2020-07-29 16:58:33 -07:00
Maximilian von Lindern
78c36f13cd
Discord: Rename Snowflake and Timestamp Valid methods ( #128 )
...
* Discord: rename Snowflake.Valid() to IsValid()
* Discord: rename Timestamp.Valid() to IsValid()
2020-07-29 16:58:33 -07:00
Tadeo Kondrak
d290b0d01c
*: Add typed Snowflake IDs ( #122 )
...
This PR closes #120 .
2020-07-29 16:58:33 -07:00
diamondburned
d18298aca9
Discord: Updated message's URL
2020-07-17 11:33:57 -07:00
diamondburned
7572caad31
Discord: Added Relationship API methods; moved structs around
2020-07-14 18:01:24 -07:00
mavolin
52bec08cc6
Discord: fix discovery splash url not getting properly calculated
2020-05-24 17:24:58 -07:00
mavolin
46b001548d
Discord: fix wrong hash for discovery splash url
2020-05-24 09:08:24 -07:00
mavolin
19b970bad7
Discord: fix #105
2020-05-23 14:24:03 -07:00
Maximilian von Lindern
ce38507fb0
Discord: fixes around meta images ( #104 )
...
* API: fix illogical order of parameters
* Discord: fixes around meta images
2020-05-23 10:17:30 -07:00
mavolin
6fbc3e6afd
Discord: fix #102
2020-05-23 09:04:12 -07:00
mavolin
530bff74a2
Discord: fix faulty default image link
2020-05-22 14:40:36 -07:00
Maximilian von Lindern
68701704a1
Discord: fix wrong field naming
2020-05-22 08:14:35 -07:00
mavolin
68d3129bfd
Discord: add docs
2020-05-22 08:14:35 -07:00
mavolin
f4be7971ee
Discord: add missing fields to Guild struct
2020-05-22 08:14:35 -07:00
mavolin
c5f1bf4753
Discord: add docs for auditlog.go
2020-05-18 10:25:17 -07:00
mavolin
805df29c2e
Discord: fix #83
2020-05-17 10:34:47 -07:00
mavolin
41ce1f389e
make all error messages lowercase
2020-05-16 23:14:49 +02:00
mavolin
22a6994c50
Discord: implement #74
2020-05-16 17:57:25 +02:00
Maximilian von Lindern
2c98f4e8e4
Discord: fix typo
2020-05-15 22:13:15 +02:00
mavolin
2c4022734b
Discord: create XURLWithType methods
2020-05-15 22:07:27 +02:00
mavolin
ceb6986749
Discord: add ImageType
2020-05-15 21:52:45 +02:00
mavolin
6ee5a1b26d
Discord: fix #70
2020-05-15 20:39:08 +02:00
mavolin
b5dedf9408
API/Discord: add GuildPreview
2020-05-15 20:10:35 +02:00
diamondburned (Forefront)
1ca7d1c62c
Discord: Fixed Snowflake Valid() returning true for null
2020-05-14 01:03:48 -07:00
diamondburned (Forefront)
aa07ff9a43
Discord: Fixed Emoji.APIString() mishandling Unicode characters
2020-05-14 00:49:10 -07:00
Matthew Penner
592d2f7172
Fix null snowflakes being formatted as 18446744073709551615
2020-05-13 15:51:26 -06:00
mavolin
04a80d33e8
API: add docs, use option types
2020-05-12 03:44:13 +02:00
mavolin
b3bfc29732
Utils: move Enum to package enum
2020-05-11 22:43:52 +02:00
mavolin
b17c32187e
API: implement option and nullable types.
2020-05-11 05:24:59 +02:00
mavolin
a29a521c5a
Utils: add nullable package
2020-05-11 04:30:34 +02:00
mavolin
c1f942bb92
Discord: use Enum type for types mentioned in #29
2020-05-11 03:26:46 +02:00
diamondburned
bc27d1481d
Merge pull request #37 from mavolin/35-modify-integration
2020-05-10 16:50:47 -07:00
mavolin
1b990cd58d
Discord: add dedicated type for ExpireBehavior
2020-05-11 01:45:44 +02:00