1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-05 06:26:08 +00:00
arikawa/discord
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
..
auditlog.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
channel.go Discord: OverwriteType to accept numbers both stringed and not 2020-10-29 13:25:03 -07:00
discord.go Discord: Added a helper HasFlag function 2020-05-04 23:13:15 -07:00
emoji.go Discord: Rename Snowflake and Timestamp Valid methods (#128) 2020-07-29 16:58:33 -07:00
guild.go Discord: Fixed incorrect OverwriteType string rules 2020-10-28 15:34:14 -07:00
guild_consts.go Discord: Renamed guild_const.go to guild_consts.go for correctness 2020-10-29 13:21:02 -07:00
invite.go Discord: fix #83 2020-05-17 10:34:47 -07:00
message.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
message_embed.go make all error messages lowercase 2020-05-16 23:14:49 +02:00
permission.go Discord: Fixed redundant and broken OverwriteType 2020-10-28 14:49:30 -07:00
snowflake.go Discord: add Mention method to mentionable Snowflakes 2020-09-24 11:54:45 -07:00
snowflake_test.go Discord: Uint64 typed Snowflakes (#132) 2020-07-29 16:58:33 -07:00
time.go Discord: Rename Snowflake and Timestamp Valid methods (#128) 2020-07-29 16:58:33 -07:00
url.go Discord: fix typo 2020-05-15 22:13:15 +02:00
user.go Discord: add Mention method to mentionable Snowflakes 2020-09-24 11:54:45 -07:00
voice.go *: Add typed Snowflake IDs (#122) 2020-07-29 16:58:33 -07:00
webhook.go *: Add typed Snowflake IDs (#122) 2020-07-29 16:58:33 -07:00