Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for the icon and unicode_emoji role struct fields #1334

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

SamusAranX
Copy link
Contributor

This partially addresses #1316 by adding support for the fields mentioned in this PR's title.
I tested this on a server with role icons and emoji and encountered no issues.

@FedorLap2006 FedorLap2006 added this to the v0.28.0 milestone Mar 9, 2023
structs.go Show resolved Hide resolved
@Earlopain Earlopain mentioned this pull request Jul 24, 2023
@FedorLap2006 FedorLap2006 added structs API structs and constants related changes feature Major feature implementation labels Sep 3, 2023
@colin969
Copy link

Any updates on why this isn't merged yet?

@FedorLap2006 FedorLap2006 merged commit 6031141 into bwmarrin:master Jan 2, 2024
8 checks passed
ymotongpoo referenced this pull request in ymotongpoo/opentelemetry-collector-extra Jun 4, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/bwmarrin/discordgo](https://github.com/bwmarrin/discordgo)
| `v0.27.1` -> `v0.28.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fbwmarrin%2fdiscordgo/v0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fbwmarrin%2fdiscordgo/v0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fbwmarrin%2fdiscordgo/v0.27.1/v0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fbwmarrin%2fdiscordgo/v0.27.1/v0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>bwmarrin/discordgo (github.com/bwmarrin/discordgo)</summary>

###
[`v0.28.1`](https://github.com/bwmarrin/discordgo/releases/tag/v0.28.1):
DiscordGo v0.28.1

[Compare
Source](https://github.com/bwmarrin/discordgo/compare/v0.28.0...v0.28.1)

Hi all! This release, once again, only bumps semantic version of the
library and does not contain any new fixes nor features.
Sorry for the inconvenience! See previous release for changelog.

###
[`v0.28.0`](https://github.com/bwmarrin/discordgo/releases/tag/v0.28.0):
DiscordGo v0.28.0

[Compare
Source](https://github.com/bwmarrin/discordgo/compare/v0.27.1...v0.28.0)

##### Changelog

##### Breaking changes

- `ChannelEdit.Position` is now a pointer
[https://github.com/bwmarrin/discordgo/pull/1385](https://github.com/bwmarrin/discordgo/pull/1385)
- `Button.Emoji` is now a pointer
[https://github.com/bwmarrin/discordgo/pull/1475](https://github.com/bwmarrin/discordgo/pull/1475)
- `SelectMenuOption.Emoji` is now a pointer
[https://github.com/bwmarrin/discordgo/pull/1476](https://github.com/bwmarrin/discordgo/pull/1476)
- `Components` and `Embeds` in `MessageEdit` are now pointers
[https://github.com/bwmarrin/discordgo/pull/1483](https://github.com/bwmarrin/discordgo/pull/1483)
- `WebhookEdit` and `WebhookEditWithToken` now return `*Webhook`,
instead of `*Role`
[https://github.com/bwmarrin/discordgo/pull/1497](https://github.com/bwmarrin/discordgo/pull/1497)
- `AuditLogGuildScheduledEventUpdare` was renamed to
`AuditLogGuildScheduledEventUpdate`
[https://github.com/bwmarrin/discordgo/pull/1370](https://github.com/bwmarrin/discordgo/pull/1370)
- Type of `Message.StickerItems` was changed to `[]StickerItem`
[https://github.com/bwmarrin/discordgo/pull/1494](https://github.com/bwmarrin/discordgo/pull/1494)
- `withMember` parameter was added to `Session.ThreadMember` and
`Session.ThreadMembers`
[https://github.com/bwmarrin/discordgo/pull/1325](https://github.com/bwmarrin/discordgo/pull/1325)
- `limit` parameter was added to `Session.ThreadMembers`
[https://github.com/bwmarrin/discordgo/pull/1325](https://github.com/bwmarrin/discordgo/pull/1325)

##### Features

- Onboarding
[https://github.com/bwmarrin/discordgo/pull/1401](https://github.com/bwmarrin/discordgo/pull/1401)
- Default values for auto-populated select menus
[https://github.com/bwmarrin/discordgo/pull/1452](https://github.com/bwmarrin/discordgo/pull/1452)
- Role icons
[https://github.com/bwmarrin/discordgo/pull/1334](https://github.com/bwmarrin/discordgo/pull/1334)

##### Additions

- Add support for usernames without disciminator
[https://github.com/bwmarrin/discordgo/pull/1387](https://github.com/bwmarrin/discordgo/pull/1387)
- Add `WebhookParams.ThreadName`
[https://github.com/bwmarrin/discordgo/pull/1412](https://github.com/bwmarrin/discordgo/pull/1412)
- Add `SuppressNotification` and `IsVoiceMessage` message flags
[https://github.com/bwmarrin/discordgo/pull/1428](https://github.com/bwmarrin/discordgo/pull/1428)
- Add `MessageSend.Flags`
[https://github.com/bwmarrin/discordgo/pull/1427](https://github.com/bwmarrin/discordgo/pull/1427)
- Add `FailIfNotExists` and `SoftReference` to `Message`
[https://github.com/bwmarrin/discordgo/pull/1376](https://github.com/bwmarrin/discordgo/pull/1376)
- Add `MessageSend.StickerIDs`
[https://github.com/bwmarrin/discordgo/pull/1340](https://github.com/bwmarrin/discordgo/pull/1340)
- Add `ApplicationCommandInteractionData.CommandType`
[https://github.com/bwmarrin/discordgo/pull/1362](https://github.com/bwmarrin/discordgo/pull/1362)
- Add `AuditLogOptions.IntegrationType`
[https://github.com/bwmarrin/discordgo/pull/1440](https://github.com/bwmarrin/discordgo/pull/1440)
- Add `AuditLogOptions.ApplicationID`
[https://github.com/bwmarrin/discordgo/pull/1380](https://github.com/bwmarrin/discordgo/pull/1380)
- Add auto moderation audit log actions and options
[https://github.com/bwmarrin/discordgo/pull/1371](https://github.com/bwmarrin/discordgo/pull/1371)
- Add monetization audit log actions
[https://github.com/bwmarrin/discordgo/pull/1442](https://github.com/bwmarrin/discordgo/pull/1442)
- Add `BotHTTPInteractions` and `ActiveBotDeveloper` user flags
[https://github.com/bwmarrin/discordgo/pull/1465](https://github.com/bwmarrin/discordgo/pull/1465)
- Add `ThreadMember.Member`
[https://github.com/bwmarrin/discordgo/pull/1325](https://github.com/bwmarrin/discordgo/pull/1325)
- Add `Member.Flags`
[https://github.com/bwmarrin/discordgo/pull/1499](https://github.com/bwmarrin/discordgo/pull/1499)
- Add `Member.DisplayName`
[https://github.com/bwmarrin/discordgo/pull/1426](https://github.com/bwmarrin/discordgo/pull/1426)
- Add `Attachments` to `InteractionResponseData`, `WebhookEdit` and
`WebhookParams`
[https://github.com/bwmarrin/discordgo/pull/1392](https://github.com/bwmarrin/discordgo/pull/1392)
- Add `Session.ShouldReconnectVoiceOnSessionError`
[https://github.com/bwmarrin/discordgo/pull/1350](https://github.com/bwmarrin/discordgo/pull/1350)
- Add `Role.Flags`
[https://github.com/bwmarrin/discordgo/pull/1410](https://github.com/bwmarrin/discordgo/pull/1410)
- Add `UpdateCustomStatus`
[https://github.com/bwmarrin/discordgo/pull/1425](https://github.com/bwmarrin/discordgo/pull/1425)
- Add Spanish LATAM locale
[https://github.com/bwmarrin/discordgo/pull/1496](https://github.com/bwmarrin/discordgo/pull/1496)
- Add `GuildDirectory` and `GuildMedia` channel types
[https://github.com/bwmarrin/discordgo/pull/1514](https://github.com/bwmarrin/discordgo/pull/1514)

##### Other changes

- Fix error shadowing in `WebhookEditWithToken`
[https://github.com/bwmarrin/discordgo/pull/1372](https://github.com/bwmarrin/discordgo/pull/1372)
- Remove remove duplicated slash in `EndpointGuildTemplate`
[https://github.com/bwmarrin/discordgo/pull/1395](https://github.com/bwmarrin/discordgo/pull/1395)
- Fix incorrect `AuditLogOptionsType` values
[https://github.com/bwmarrin/discordgo/pull/1413](https://github.com/bwmarrin/discordgo/pull/1413)
- Allow `Components` and `Embeds` in `MessageEdit` to be set to `[]`
[https://github.com/bwmarrin/discordgo/pull/1483](https://github.com/bwmarrin/discordgo/pull/1483)
- Allow `ChannelEdit.Position` to be set to `0`
[https://github.com/bwmarrin/discordgo/pull/1385](https://github.com/bwmarrin/discordgo/pull/1385)
- Fix `BUTTON_COMPONENT_INVALID_EMOJI` error for `Button`
[https://github.com/bwmarrin/discordgo/pull/1475](https://github.com/bwmarrin/discordgo/pull/1475)
- Fix `BUTTON_COMPONENT_INVALID_EMOJI` error for `SelectMenuOption`
[https://github.com/bwmarrin/discordgo/pull/1476](https://github.com/bwmarrin/discordgo/pull/1476)

##### Special thanks

-   [@&#8203;Roolps](https://github.com/Roolps)
-   [@&#8203;tckthecreator](https://github.com/tckthecreator)
-   [@&#8203;quackduck](https://github.com/quackduck)
-   [@&#8203;Earlopain](https://github.com/Earlopain)
-   [@&#8203;loghinalexandru](https://github.com/loghinalexandru)
-   [@&#8203;merlinfuchs](https://github.com/merlinfuchs)
-   [@&#8203;Aldiwildan77](https://github.com/Aldiwildan77)
-   [@&#8203;Ju0x](https://github.com/Ju0x)
-   [@&#8203;JulienTant](https://github.com/JulienTant)
-   [@&#8203;KokeCacao](https://github.com/KokeCacao)
-   [@&#8203;SamusAranX](https://github.com/SamusAranX)
-   [@&#8203;TheGrandPackard](https://github.com/TheGrandPackard)
-   [@&#8203;phamill](https://github.com/phamill)
-   [@&#8203;AlexeyOplachko](https://github.com/AlexeyOplachko)
-   [@&#8203;Cyb3r-Jak3](https://github.com/Cyb3r-Jak3)
-   [@&#8203;joshuasing](https://github.com/joshuasing)
-   [@&#8203;hhaste](https://github.com/hhaste)

**Full Changelog**:
bwmarrin/discordgo@v0.27.1...v0.28.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ymotongpoo/opentelemetry-collector-extra).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Major feature implementation structs API structs and constants related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants