1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-01 04:24:19 +00:00
arikawa/discord
diamondburned d8438f3b51
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-09 18:31:06 -08:00
..
application.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
auditlog.go *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00
channel.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
command.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
component.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
discord.go Discord: optimize struct sizes; add missing fields 2020-11-22 09:16:24 -08:00
emoji.go discord: Emoji methods use IsUnicode() 2021-05-29 14:16:44 -07:00
guild.go discord: Fix json tag for Guild.Features (#283) 2021-10-04 23:22:27 -07:00
guild_consts.go api: Threads (#257) 2021-08-08 13:19:15 -07:00
interaction.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
invite.go Discord: fix #83 2020-05-17 10:34:47 -07:00
message.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
message_embed.go option: Move conflicting types into package discord 2021-08-30 13:23:43 -07:00
permission.go discord: Update to match current API docs (#277) 2021-09-23 21:37:50 -07:00
snowflake.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
snowflake_test.go Discord: Uint64 typed Snowflakes (#132) 2020-07-29 16:58:33 -07:00
snowflake_types.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
stage.go discord/api: Add StageInstances 2021-05-29 22:17:39 -07:00
time.go discord: Add VoiceState.SelfVideo; fixes #287 2021-10-30 16:43:28 -07:00
url.go Discord: fix typo 2020-05-15 22:13:15 +02:00
user.go discord: Add Banner & Accent fields to User (#267) 2021-08-16 23:48:36 -07:00
voice.go discord: Add VoiceState.SelfVideo; fixes #287 2021-10-30 16:43:28 -07:00
webhook.go discord: Add missing webhook fields (#250) 2021-08-02 16:14:34 -07:00