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

feat(role): add flags #1410

Merged
merged 9 commits into from
Mar 7, 2024
Merged

feat(role): add flags #1410

merged 9 commits into from
Mar 7, 2024

Conversation

Earlopain
Copy link
Contributor

Depends on #1334

https://discord.com/developers/docs/topics/permissions#role-object-role-flags

A better solution to what I was doing in my onboarding pr, wasn't documented at the time though.
I also thought about adding the tags field as per #1316 but that has weird nullable types I didn't want to bother with. The issue should also be reopened as the PR doesn't address it fully and isn't merged.

structs.go Outdated Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
Earlopain and others added 2 commits August 7, 2023 13:28
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
@FedorLap2006 FedorLap2006 added feature Feature implementation structs API structs and constants related changes labels Aug 12, 2023
@FedorLap2006 FedorLap2006 added this to the v0.28.0 milestone Aug 16, 2023
structs.go Outdated Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
Earlopain and others added 2 commits March 3, 2024 04:33
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
@FedorLap2006 FedorLap2006 merged commit 202785c into bwmarrin:master Mar 7, 2024
8 checks passed
@Earlopain Earlopain deleted the role-flags branch March 7, 2024 16:37
ymotongpoo pushed a commit to ymotongpoo/opentelemetry-collector-extra that referenced this pull request 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://togithub.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://togithub.com/bwmarrin/discordgo/releases/tag/v0.28.1):
DiscordGo v0.28.1

[Compare
Source](https://togithub.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://togithub.com/bwmarrin/discordgo/releases/tag/v0.28.0):
DiscordGo v0.28.0

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

##### Changelog

##### Breaking changes

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

##### Features

- Onboarding
[bwmarrin/discordgo#1401
- Default values for auto-populated select menus
[bwmarrin/discordgo#1452
- Role icons
[bwmarrin/discordgo#1334

##### Additions

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

##### Other changes

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

##### Special thanks

-   [@&#8203;Roolps](https://togithub.com/Roolps)
-   [@&#8203;tckthecreator](https://togithub.com/tckthecreator)
-   [@&#8203;quackduck](https://togithub.com/quackduck)
-   [@&#8203;Earlopain](https://togithub.com/Earlopain)
-   [@&#8203;loghinalexandru](https://togithub.com/loghinalexandru)
-   [@&#8203;merlinfuchs](https://togithub.com/merlinfuchs)
-   [@&#8203;Aldiwildan77](https://togithub.com/Aldiwildan77)
-   [@&#8203;Ju0x](https://togithub.com/Ju0x)
-   [@&#8203;JulienTant](https://togithub.com/JulienTant)
-   [@&#8203;KokeCacao](https://togithub.com/KokeCacao)
-   [@&#8203;SamusAranX](https://togithub.com/SamusAranX)
-   [@&#8203;TheGrandPackard](https://togithub.com/TheGrandPackard)
-   [@&#8203;phamill](https://togithub.com/phamill)
-   [@&#8203;AlexeyOplachko](https://togithub.com/AlexeyOplachko)
-   [@&#8203;Cyb3r-Jak3](https://togithub.com/Cyb3r-Jak3)
-   [@&#8203;joshuasing](https://togithub.com/joshuasing)
-   [@&#8203;hhaste](https://togithub.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 Feature implementation structs API structs and constants related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants