1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 00:14:57 +00:00
arikawa/api
diamondburned 181dcb1bdd
api: Introduce api/cmdroute
This commit introduces a slash commands and autocompletion router. It
abstracts the switch-cases that the user has to do in each
InteractionEvent handler away.

The router is largely inspired by go-chi's design. Refer to the tests
for examples.
2022-10-13 23:01:29 -07:00
..
cmdroute api: Introduce api/cmdroute 2022-10-13 23:01:29 -07:00
rate *: Migrated Go Modules to v3 2021-06-01 19:59:01 -07:00
webhook api: Allow disabling interaction pubkey verification (#350) 2022-10-11 18:01:31 -07:00
api.go discord: Add localization to Application Commands (#322) 2022-04-11 21:30:25 -07:00
api_test.go API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
application.go discord: Add permission fields to Command (#326) 2022-05-08 03:33:56 -07:00
bot.go gateway: Refactor for a better concurrent API 2021-12-14 13:49:34 -08:00
channel.go api: *ArchivedThreadsBefore to *ArchivedThreads, allow empty Limit 2022-10-01 22:02:28 -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 api: Add NullImage 2022-02-17 13:05:15 -08:00
integration_test.go api: More multiple embed support for send functions (#266) 2021-08-16 02:26:25 -07:00
interaction.go api: omitempty InteractionResponseData.Choices 2022-08-22 02:08:28 -07: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 discord: Add timeouts (#299) 2021-12-20 15:56:11 -08:00
message.go discord: Refactor interactions and components 2021-11-12 11:38:36 -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 discord: Add Icon/Emoji & Tags to Role (#313) 2022-02-17 18:07:03 -08:00
scheduled_events.go discord: Support guild Scheduled Events (#319) 2022-04-02 22:36:45 -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-12 11:38:36 -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