1632 Commits

Author SHA1 Message Date
Shadat Rahman
33ee38cbf2 feat(UserGuilds)!: support with_counts parameter (#1500)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-03-15 18:22:29 +03:00
Earlopain
202785c50b feat(role): add flags (#1410)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-03-07 18:51:22 +03:00
Earlopain
384ff4e9a9 feat(member): add flags (#1499)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-02-29 17:50:39 +03:00
Fedor Lapshin
8968e58b4d docs(message): remove the mention of Sticker objects 2024-02-26 14:18:02 +03:00
Earlopain
c3f22cb8ab feat(message)!: use partial sticker objects (#1494) 2024-02-26 14:13:17 +03:00
Joshua Sing
bb405daf68 feat(locales): add spanish LATAM (#1496) 2024-02-26 14:03:17 +03:00
Cyb3r Jak3
15ef2a43d4 fix!: return Webhook struct from WebhookEdit and WebhookEditWithToken (#1497) 2024-02-16 17:06:04 +03:00
AlexeyOplachko
7f80bc7978 fix(message)!: omit empty Components and Embeds (#1483)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-02-03 02:59:38 +03:00
Paul Hamill
afc57886f9 fix(SelectMenuOption)!: omit empty emoji field (#1476) 2024-01-04 22:11:17 +03:00
Joshua Packard
f70a01544f fix(buttons)!: omit empty emoji field (#1475) 2024-01-04 07:17:34 +03:00
Fedor Lapshin
1ffd696aae refactor(EndpointRoleIcon): rename hash parameter 2024-01-02 11:19:34 +03:00
Fedor Lapshin
b36e573cd1 chore(EndpointRoleIcon): move closer to related endpoints 2024-01-02 11:19:20 +03:00
SamusAranX
603114195a feat(roles): add support for icons and unicode emojis (#1334)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-01-02 11:09:44 +03:00
Earlopain
30b2cf22b4 feat(guild): implement onboarding (#1401)
Add guild onboarding endpoints and related structs.
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-01-01 08:01:07 +03:00
Koke_Cacao
b3638db82a feat(interactions): implement Attachments field (#1392)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-30 07:24:00 +03:00
Julien Tant
13748a3431 feat(member): add helper function for display name (#1426) 2023-12-29 23:22:24 +03:00
ikafly144
d2fd4c5587 feat(ThreadMember): implement Member field (#1325)
* Add Member field to TreadMember

* Add query params to ThreadMember and ThreadMembers

* Add json tag

* docs: add periods

* fix: gofmt

* docs: document withMember parameter

* docs(Session.ThreadMember): rephrase description of withMember parameter

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-23 06:44:08 +03:00
Fedor Lapshin
f7800efc52 docs(SelectMenu): correct a typo 2023-12-08 15:51:10 +03:00
Fedor Lapshin
0068a2db3c feat(SelectMenu): default values (#1452)
* feat(SelectMenu): default values

* fix: remove unncessary pointer

Since SelectMenu is used as a nested structure, it is not possible to
partially edit it. Thus, an empty slice does not need to be accounted for,
and the pointer, which would only be omitted if the value is nil, can be
converted to a regular slice.

* fix: correct grammar in the comment to SelectMenuDefaultValueType
2023-12-08 15:47:42 +03:00
Julien
44e4acb7d5 feat(UserFlags): add BotHTTPInteractions and ActiveDeveloper (#1465)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-04 13:38:10 +03:00
LightningDev1
e8b8ad326b feat(user): add UserPremiumType type (#1467)
* feat(user): Add UserPremiumType type

* chore(UserPremiumType): fix type name in comment

* style: periods

Add periods at the end of the documentation comments.

* chore(UserPremiumType): reword documentation comment

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-04 13:35:56 +03:00
Merlin
1f0b57f110 feat(WebhookParams): add thread_name field (#1412)
Add ThreadName field into WebhookParams to allow for creation of forum posts by webhooks.

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-09-22 16:03:45 +03:00
Earlopain
a2079d3138 feat(auditlog): add monetization actions (#1442) 2023-09-07 15:56:33 +03:00
guangwu
c2117695cc fix: typo in modal example and getting started (#1443)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-09-04 21:42:02 +03:00
Earlopain
8ca6533433 feat(auditlog): add integration_type to options (#1440) 2023-09-04 00:19:40 +03:00
Fedor Lapshin
b51655404a feat: add UpdateCustomStatus (#1425)
Add Session.UpdateCustomStatus, which allows to set and reset the custom status of a bot.
2023-09-02 01:38:18 +03:00
ozraru
ff9176adcc feat(MessageSend): add flags (#1427)
Add Flags field to MessageSend struct
2023-08-16 16:46:54 +03:00
ozraru
a7ba2904ba feat: add new message flags (#1428)
Add MessageFlagsSuppressNotifications and MessageFlagsIsVoiceMessage.
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-08-16 10:19:57 +03:00
Denver Quane
58193fbfaa fix(voice): session id deadlock on open (#1408)
* Unlock when checking voice connection sessionID to prevent deadlock

* Move lock to preserve concurrency safety, while allowing the sessionID to be populated

* style: formatting

Fix formatting of the documentation comment for VoiceConnection.Speaking function

* feat: reword explanatory comment

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-08-13 07:06:50 +03:00
Earlopain
393091b18c fix(auditlog): use correct values for AuditLogOptionsType (#1413) 2023-07-29 04:38:16 +03:00
Muhammad Wildan Aldiansyah
e39e715086 feat: support new username system (#1387)
* Add support for new username system in User.String and User.AvatarURL
* Move default avatar index logic from EndpointDefaultUserAvatar into User.DefaultAvatarIndex

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-07-05 02:37:47 +03:00
Merlin
0b0ea10b47 fix(endpoints): remove duplicated slash in guild template endpoint (#1395) 2023-07-03 17:26:46 +03:00
Loghin Alexandru
a90485df0c feat(ws): add toggle for voice reconnects on session reconnect (#1350)
* Add flag for voice reconnect on session reconnect

* Rename ShouldReconnectVoiceConnOnError toggle as suggested

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* Fix indentaion for discord.go

* Change wording in docs

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-06-05 16:21:06 +03:00
Fedor Lapshin
af63880a0b fix(ChannelEdit)!: omit empty Position (#1385)
Make Position field a pointer and add omitempty JSON option to avoid
setting it to 0 when it is not specified.
2023-06-05 16:07:40 +03:00
Earlopain
fc4a3ce97d feat(auditlog): add application_id to AuditLogOptions (#1380) 2023-05-25 17:22:26 +03:00
Elliot Williams
dde7690782 fix(GuildDelete)!: stop returning guild (#1329)
Stop returning Guild from GuildDelete, since underlying endpoint returns 204 (No Content).
2023-05-25 16:10:06 +03:00
Earlopain
1252b71f38 feat(MessageReference): add fail_if_not_exists (#1376)
* Add fail_if_not_exists to MessageReference
* Add SoftReference function to Message

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-05-14 18:53:29 +03:00
Earlopain
160605c9c3 feat(auditlog): add auto moderation actions and options (#1371) 2023-05-14 18:42:41 +03:00
Ishan Goel
7c47cfc906 fix(WebhookEditWithToken): error shadowing (#1372)
* fix(WebhookEditWithToken): error shadowing

* fix: gofmt

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-05-11 17:43:05 +03:00
Fedor Lapshin
69f6c46a34 fix(AuditLogGuildScheduledEventUpdate): typo (#1370) 2023-04-24 04:29:04 +03:00
Victor Souza
7ec67b07d2 Add CommandType field to ApplicationCommandInteractionData (#1362)
* Add the CommandType field to ApplicationCommandInteractionData

* Remove unnecessary comment

* Change order of the fields

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-04-15 02:31:36 +03:00
Fedor Lapshin
6958472163 Implement Audit Log Entry Create event (#1314)
* Implement GUILD_AUDIT_LOG_ENTRY_CREATE event.
* Rename IntentGuildBans constant to IntentGuildModeration to match API documentation.
2023-04-07 16:19:12 +03:00
Yara McRobert
b7c431c368 Added stickers to type MessageSend (#1340)
* Added stickers to type MessageSend

* Update restapi.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* Update message.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-04-04 18:30:57 +03:00
Fedor Lapshin
cd4f875097 feat(*): bump version to 0.27.1 v0.27.1 2023-03-10 02:39:49 +03:00
Adam Snyder
1115a47c5d fix: ThreadMember flags not serialized (#1335) 2023-03-10 02:31:46 +03:00
Adam Snyder
58ea3535b0 fix: WithContext had no effect (#1337)
Fix usage of an outdated request in RequestWithLockedBucket after applying WithContext option

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-03-10 02:13:09 +03:00
Fedor Lapshin
ba97131805 74 byte handshake (#1343)
* feat(voice): 74 byte udp handshake

Update the format of UDP handshake to use 74 byte packets.

* docs: use new positions in comments

* feat: document type and length fields

Add descriptions of type and length fields to the request packet documentation.
2023-03-10 00:33:26 +03:00
LightningDev1
916f693c00 Add GIF sticker format (#1330)
* Add GIF sticker format

* Replace tab with spaces
2023-02-21 01:36:18 +03:00
Fedor Lapshin
cbf9908143 feat(*): bump version to 0.27.0 v0.27.0 2023-01-18 02:08:41 +03:00
Fedor Lapshin
d583fd1d1e feat(GuildPreview.IconURL): add docs for size
Add documentation comment for size parameter of GuildPreview.IconURL
function.
2023-01-18 02:03:15 +03:00