Nat
918cce64e9
discord: Fix json tag for Guild.Features ( #283 )
2021-10-04 23:22:27 -07:00
samhza
bfb644c124
api: Add CurrentApplication ( #282 )
...
* discord/api: support fetching bot's Application
* Update api/application.go
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
2021-10-03 13:31:48 -07:00
starshines
8ea320ccb9
discord: Add ChannelType field to CommandOption ( #279 )
...
* discord: add ChannelType field to CommandOption
* preallocate option.ChannelTypes
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
2021-09-28 14:12:04 -07:00
starshines
ca70e0cca9
discord: Add per-guild avatars, ModifyMe -> ModifyCurrentUser ( #278 )
...
* v3: discord, api, gateway: add per-guild avatars
* api: rename ModifyMe to ModifyCurrentUser
2021-09-28 11:46:36 -07:00
samhza
e203e31ab3
discord: Update to match current API docs ( #277 )
...
* 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
2021-09-23 21:37:50 -07:00
diamondburned
76ec9cd43d
discord: Fix InteractionOption.String
2021-09-09 21:12:22 -07:00
samhza
dc92845315
discord: move Interaction over; update api.CommandCreateData ( #274 )
...
- Moved gateway.InteractionCreateData to discord.Interaction, now
gateway.InteractionCreateData is a struct that wraps
discord.Interaction.
- Split InteractionData into CommandInteractionData and
ComponentInteractionData.
- Renamed ButtonInteraction to ComponentInteraction.
- Updated api.CommandCreateData to add new fields.
- Update Component types' Type() methods to pointer receivers.
2021-09-09 16:06:44 -07:00
Maximilian von Lindern
02712516e3
discord: Change type of SelectComponent.MinValues to option.Int
2021-08-30 13:23:43 -07:00
Maximilian von Lindern
53c72c1e16
option: Move conflicting types into package discord
2021-08-30 13:23:43 -07:00
Maximilian von Lindern
2647267460
discord: Fix style issues ( #272 )
...
* Discord: Fix comment style issues
* Discord: use URL type alias for URls instead of string
2021-08-30 13:15:59 -07:00
rigormorrtiss
eece98903a
discord: Add Banner & Accent fields to User ( #267 )
...
* feat(discord): add banner & accent_color field to User struct
* feat(discord): use type Color (uint32) for User.AccentColor
* discord: change field name to Accent
2021-08-16 23:48:36 -07:00
rigormorrtiss
b253a5659b
discord: Add Invitable field for threads ( #268 )
2021-08-16 22:37:33 -07:00
rigormorrtiss
e97dcb750c
discord: Add omitempty option to Attachment.ContentType ( #263 )
2021-08-12 11:45:48 -07:00
Juby210
21888dcfc2
discord: Add missing ContentType to Attachment ( #262 )
2021-08-11 18:16:50 -07:00
starshines
f7880b91ee
discord: Add select component type ( #260 )
2021-08-10 14:02:30 -07:00
Maximilian von Lindern
c00567599b
api: Threads ( #257 )
...
* api/gateway: Implement threads
* discord/api: rename PermissionOverwrites fields to Overwrites
* discord: rename Minutes to ArchiveDuration
* discord: Rename ArchiveDuration constants
Co-authored-by: diamondburned <datutbrus@gmail.com>
2021-08-08 13:19:15 -07:00
Maximilian von Lindern
101fe46313
api: Add missing slash command endpoints ( #252 )
...
* api: add missing slash command endpoints
* fix examples
* api: Remove Original prefix from Client.OriginalInteractionResponse,
EditOriginalResponse, and DeleteOriginalResponse
2021-08-03 11:44:20 -07:00
Starshine System
127c6776ac
discord: add missing command option types
2021-08-03 09:07:09 -07:00
rigormorrtiss
2fe1150d01
discord: Update Sticker struct, add missing fields ( #251 )
...
* 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>
2021-08-02 16:16:06 -07:00
Maximilian von Lindern
ce4bd67f17
discord: Add missing webhook fields ( #250 )
...
* discord: add missing webhook fields
* discord: add missing ,omitempty tags on Webhook
* discord: add missing ,omitempty tags on Webhook
2021-08-02 16:14:34 -07:00
Starshine System
9651328b74
discord: Raise embed description limit to 4096 characters ( #243 )
2021-07-11 13:19:54 -07:00
samhza
1b12057e51
discord: Make OverboundError.Error() have a pointer receiver ( #232 )
2021-06-18 00:15:02 -07:00
samhza
37b8871c65
api: Update sending/editing messages for v9 ( #230 )
...
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.
2021-06-17 23:32:11 -07:00
Germano Eichenberg
94090b92ff
discord, gateway: Add IsPending to Member & SupplementalMember ( #231 )
2021-06-17 13:40:57 -07:00
diamondburned
68313eb872
discord: Fix Channel not unmarshaling
2021-06-14 15:23:08 -07:00
Maximilian von Lindern
c8e7eff04e
discord: rename ActivityTimestamp to ActivityTimestamps
2021-06-06 13:12:24 -07:00
Maximilian von Lindern
f1f4f06979
*: Rename error types to have Error suffix ( #215 )
2021-06-06 12:40:24 -07:00
Samuel Hernandez
40e1a3757d
*: Migrated Go Modules to v3
2021-06-01 19:59:01 -07:00
Maximilian von Lindern
c45096c9fa
discord: Fix faulty marshal of Channel.RTCRegionID ( #210 )
2021-05-30 14:14:41 -07:00
Maximilian von Lindern
5a1837a094
discord/api: Add StageInstances
2021-05-29 22:17:39 -07:00
diamondburned
4595c87e36
discord: Fix {un,}marshal loop
2021-05-29 22:07:39 -07:00
Maximilian von Lindern
6f73088e7d
api/discord: Add RTCRegionID and VoiceQuality
2021-05-29 22:07:39 -07:00
diamondburned
b936d00ead
discord: Minor comment fixes for components
2021-05-29 21:32:38 -07:00
Scott
10c8837000
api: Finalized buttons implementation ( #200 )
...
* all: Added Components fields to message-related types
* discord: Documented Reactions field
* discord: Implement fix for Component
* gateway: Added User and Message fields to InteractionCreateEvent
* api: Made InteractionResponseData fields optional for UpdateMessage responses
* api: Deprecated and updated interaction response types
* gateway: Update optional interaction event fields
* discord: Added ComponentWrap for json unmarshalling
* state: Update components on MessageUpdate
* Updated buttons example
2021-05-29 21:32:33 -07:00
unknown
a1ab986ded
discord: Emoji methods use IsUnicode()
2021-05-29 14:16:44 -07:00
unknown
58fea822e1
discord: Fixed docs links
2021-05-29 14:16:44 -07:00
unknown
d69abe49de
discord: Add AllVoice perms
2021-05-29 14:16:44 -07:00
unknown
f5b3e3972b
discord: Use consts for Discord constants
2021-05-29 14:16:44 -07:00
Chan Wen Xu
c880cb2fc8
interaction: Implement buttons
2021-05-29 14:16:44 -07:00
unknown
f8195f6e87
discord: Add Emoji.IsCustom() & IsUnicode() methods
2021-05-20 22:53:46 -07:00
unknown
25152c85d9
discord: Fixed typo
2021-05-20 22:53:46 -07:00
unknown
cfd620ee39
discord: Add User.Tag() method
2021-05-20 22:53:46 -07:00
unknown
5026795551
discord: Add CreatedAt() methods
2021-05-20 22:53:46 -07:00
unknown
a10c4d2062
discord: Document User.Mention()
2021-05-20 22:53:46 -07:00
Chan Wen Xu
5b63307a4a
discord: Add certified moderator user flag
...
A new user flag has been documented in discord/discord-api-docs@55cd3d7 .
This commit adds the flag to arikawa.
2021-05-20 09:40:21 -07:00
diamondburned
968112fb53
Discord: typed snowflake for Interaction
2021-02-17 17:41:19 -08:00
Matthew Penner
7c3374543e
Discord: Add basic support for slash commands
2021-01-27 10:44:14 -08:00
diamondburned
afc4183020
Discord: Activity to have AppID instead for consistency
...
This change is breaking for the discord.Activity struct, but it's worth
having the consistency.
2021-01-27 10:30:09 -08:00
mavolin
d940a97a0f
Discord: add support for string based OverwriteTypes as used in GuildCreate
2021-01-10 13:29:11 -08:00
diamondburned
dcee1c2506
Discord: Fixed MessageType values
2021-01-05 13:38:37 -08:00