This commit adds the StickerURLWithType methods into Sticker and
StickerItem types. No Lottie support is added yet, because I'm not sure
what the filename format for that is.
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.
* discord: update permission constants
* discord: update MessageType constants, add ephemeral field to Attachment
Renamed ApplicationCommandMessage to ChatInputCommandMessage and add
ContextMenuCommand. Add the ephemeral field to Attachment.
* discord: add version field to Command
* gateway: remove ApplicationCommandUpdateEvent
52f1824451
* Update Sticker struct & add missing fields
* Remove PreviewAsset field from Sticker
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
* Update discord/message.go
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
* Change Sticker.User type to *User
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
* Update discord/message.go
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
* Sticker types start from 0
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
* Change Sticker.SortValue type to *int
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
* Remove extra space
* Un-ignore Sticker.Tags field
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
Co-authored-by: Maximilian von Lindern <maximilian.v.lindern@gmail.com>
api.{Send,Edit}MessageData and their equivalents in package api/webhook
have been updated to add some fields added in Discord API v9.
(webhook.Client).EditMessage now also returns a message, because that
endpoint returns a message on success.