Samuel Hernandez
0ec9fe5ace
discord: add URL method to Channel
2024-07-14 12:42:27 +07:00
diamondburned
dffb6400fe
discord: Add ThreadMetadata.CreateTimestamp field
2024-01-01 16:40:31 -08:00
diamondburned
00c3ed4b8a
discord: GuildNews -> GuildAnnouncement
2023-01-31 00:13:50 -08:00
ayn2op
0033d02c11
discord: Add missing fields in Channel struct ( #366 )
2023-01-31 00:09:20 -08:00
svenwiltink
fa35b32b79
discord: Add ChannelFlags ( #345 )
...
* added ChannelFlags
* Minor style fixes, comment additions
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
2022-09-23 00:00:04 -07:00
svenwiltink
238a91b2fc
discord: Add Tag for forum ( #344 )
...
* Add Tag and TagID for forum capabilities
* set correct json flags
* Fix up naming and minor fixes
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
2022-09-21 13:17:26 -07:00
diamondburned
d96ce0f54c
discord: Add Guild{Directory,Forum}
2022-09-19 14:55:54 -07:00
diamondburned
331ec59dec
discord: Refactor interactions and components
...
This commit gets rid of contain-it-all structs and instead opt for
interface union types containing underlying concrete types with no
overloading.
The code is much more verbose by doing this, but the API is much nicer
to use. The only disadvantage in that regard is the interface assertion
being too verbose and risky for users at times.
2021-11-12 11:38:36 -08:00
rigormorrtiss
b253a5659b
discord: Add Invitable field for threads ( #268 )
2021-08-16 22:37:33 -07:00
Maximilian von Lindern
c00567599b
api: Threads ( #257 )
...
* api/gateway: Implement threads
* discord/api: rename PermissionOverwrites fields to Overwrites
* discord: rename Minutes to ArchiveDuration
* discord: Rename ArchiveDuration constants
Co-authored-by: diamondburned <datutbrus@gmail.com>
2021-08-08 13:19:15 -07:00
diamondburned
68313eb872
discord: Fix Channel not unmarshaling
2021-06-14 15:23:08 -07:00
Samuel Hernandez
40e1a3757d
*: Migrated Go Modules to v3
2021-06-01 19:59:01 -07:00
Maximilian von Lindern
c45096c9fa
discord: Fix faulty marshal of Channel.RTCRegionID ( #210 )
2021-05-30 14:14:41 -07:00
Maximilian von Lindern
5a1837a094
discord/api: Add StageInstances
2021-05-29 22:17:39 -07:00
diamondburned
4595c87e36
discord: Fix {un,}marshal loop
2021-05-29 22:07:39 -07:00
Maximilian von Lindern
6f73088e7d
api/discord: Add RTCRegionID and VoiceQuality
2021-05-29 22:07:39 -07:00
unknown
f5b3e3972b
discord: Use consts for Discord constants
2021-05-29 14:16:44 -07:00
unknown
5026795551
discord: Add CreatedAt() methods
2021-05-20 22:53:46 -07:00
mavolin
d940a97a0f
Discord: add support for string based OverwriteTypes as used in GuildCreate
2021-01-10 13:29:11 -08:00
mavolin
fc5d10ced8
Discord: optimize struct sizes; add missing fields
2020-11-22 09:16:24 -08:00
Maximilian von Lindern
1d58ea57fb
Discord: Add missing guild widget methods ( #168 )
...
* Discord: cleanup comments
* Discord: differentiate between GuildWidget and GuildWidgetSettings
* Discord: rename GuildImageURL and GuildImage to GuildWidgetURL and GuildWidget
* Discord: add missing guild widget endpoints
2020-11-21 09:40:54 -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
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
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
mavolin
647efb8030
Discord: add Mention method to mentionable Snowflakes
2020-09-24 11:54:45 -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
Tadeo Kondrak
d290b0d01c
*: Add typed Snowflake IDs ( #122 )
...
This PR closes #120 .
2020-07-29 16:58:33 -07:00
mavolin
6fbc3e6afd
Discord: fix #102
2020-05-23 09:04:12 -07:00
mavolin
a29a521c5a
Utils: add nullable package
2020-05-11 04:30:34 +02:00
diamondburned (Forefront)
6cd4b361ce
Discord: Added Channel.IconURL
2020-03-05 15:49:44 -08:00
diamondburned (Forefront)
e61d6f5ccf
Added more Mention methods
2020-01-23 21:45:47 -08:00
diamondburned (Forefront)
d56e3fae0f
Added some more
2020-01-04 23:50:22 -08:00
diamondburned
6b993f2032
Added Permissions and stuff
2020-01-03 20:19:24 -08:00
diamondburned
e41a2c7c42
Moved Discord structs to package discord
2020-01-02 11:53:08 -08:00