arikawa/api
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
..
rate *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00
webhook discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
api.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
api_test.go API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
application.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
bot.go shard: Remake shard manager (#226) 2021-06-14 15:22:55 -07:00
channel.go api: *Client.ActiveThreads returns ActiveThreads struct (#270) 2021-08-20 02:27:53 -07:00
emoji.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
guild.go option: Move conflicting types into package discord 2021-08-30 13:23:43 -07:00
image.go *: Rename error types to have Error suffix (#215) 2021-06-06 12:40:24 -07:00
integration_test.go api: More multiple embed support for send functions (#266) 2021-08-16 02:26:25 -07:00
interaction.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
invite.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
login.go *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00
member.go api: Remove Client.Kick and rename .KickWithReason to .Kick 2021-08-18 11:31:16 -07:00
message.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
message_reaction.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
role.go option: Move conflicting types into package discord 2021-08-30 13:23:43 -07:00
search.go api: Omitted SearchData redundant option type 2021-06-26 17:04:00 -07:00
send.go discord: Refactor interactions and components 2021-11-09 18:31:06 -08:00
send_test.go api: Update sending/editing messages for v9 (#230) 2021-06-17 23:32:11 -07:00
stage.go api: Add support for the X-Audit-Log-Reason header (#259) 2021-08-15 18:33:33 +02:00
user.go discord: Add per-guild avatars, ModifyMe -> ModifyCurrentUser (#278) 2021-09-28 11:46:36 -07:00
webhook.go *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00