discordmuffin/examples
plally ab47f123ba
support allowing webhook edits with files, and responding to interactions with files (#931)
* allow files in webhook message edits

* add Files to WebhookEdit struct

* move the construction of the multipart body for files into a shared function

* allow  interaction responses to have files

* go fmt

* fix err shadowing

* document MakeFilesBody

* rename MakeFilesBody -> EncodeWithFiles. fix InteractionRespond responding twice

* use resp in InteractionRespond files, add basic-command-with-files example command

* import strings and go fmt

* EncodeWithFiles -> MultiPartBodyWithJSON

* go fmt

* fix example for slash_commands

* move files to responsedata
2021-07-30 11:22:08 -04:00
..
airhorn Switch example to use UpdateGameStatus 2021-01-20 19:33:43 -05:00
avatar Fix avatar usage example, spaces are important too. 2017-04-14 14:10:09 +00:00
components Interactions: the Buttons (#933) 2021-06-27 12:16:52 -04:00
dm_pingpong Add ping pong example for direct messages (#882) 2021-05-14 22:34:46 -04:00
pingpong Remove support for optional intents 2021-01-20 18:18:34 -05:00
slash_commands support allowing webhook edits with files, and responding to interactions with files (#931) 2021-07-30 11:22:08 -04:00
voice_receive Remove support for optional intents 2021-01-20 18:18:34 -05:00
README.md Misc changes to docs (#907) 2021-05-14 22:19:57 -04:00

DiscordGo Examples

These examples demonstrate how to utilize DiscordGo.

Please explore the individual folders and give them a try!

Join Discord Gophers Discord chat channel for support.