Skip to content

Change GuildPrivateThreadCreate to have NonInvitable field instead of Invitable #379

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

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

myrkvi
Copy link
Contributor

@myrkvi myrkvi commented Aug 13, 2024

The current implementation has the field Invitable and the JSON annotation omitempty, which results in the field being omitted when it is false. Not explicitly setting an invitable state should result in it being invitable, and as such, having NonInvitable achieves this.

@topi314
Copy link
Member

topi314 commented Aug 13, 2024

I'd rather have this be a pointer instead to be consistent with other fields & the discord docs

@myrkvi
Copy link
Contributor Author

myrkvi commented Aug 13, 2024

I'd rather have this be a pointer instead to be consistent with other fields & the discord docs

Definitely a saner way to do it 😅

@topi314
Copy link
Member

topi314 commented Aug 13, 2024

sane is arguable in this case, getting pointers from primitives is annoying after all lol

@topi314 topi314 merged commit 4cd4fff into disgoorg:master Aug 13, 2024
3 checks passed
@topi314
Copy link
Member

topi314 commented Aug 13, 2024

thanks

adalinesimonian referenced this pull request in NLLCommunity/heimdallr Aug 31, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/disgoorg/disgo](https://togithub.com/disgoorg/disgo) |
`v0.18.10` -> `v0.18.11` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdisgoorg%2fdisgo/v0.18.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fdisgoorg%2fdisgo/v0.18.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fdisgoorg%2fdisgo/v0.18.10/v0.18.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdisgoorg%2fdisgo/v0.18.10/v0.18.11?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>disgoorg/disgo (github.com/disgoorg/disgo)</summary>

###
[`v0.18.11`](https://togithub.com/disgoorg/disgo/releases/tag/v0.18.11):
- Entry point commands, subscriptions and more

[Compare
Source](https://togithub.com/disgoorg/disgo/compare/v0.18.10...v0.18.11)

#### What's Changed

- Add entry point commands + callback updates by
[@&#8203;sebm253](https://togithub.com/sebm253) in
[https://github.com/disgoorg/disgo/pull/390](https://togithub.com/disgoorg/disgo/pull/390)
- Add subscriptions by [@&#8203;sebm253](https://togithub.com/sebm253)
in
disgoorg/disgo@fcbf484
- Add `GuildVoiceChannelEffectSend` by
[@&#8203;sebm253](https://togithub.com/sebm253) in
[https://github.com/disgoorg/disgo/pull/282](https://togithub.com/disgoorg/disgo/pull/282)
- Add `rest.GetActivityInstance` by
[@&#8203;sebm253](https://togithub.com/sebm253) in
disgoorg/disgo@a979bbb
- Add poll result messages by
[@&#8203;sebm253](https://togithub.com/sebm253) in
[https://github.com/disgoorg/disgo/pull/374](https://togithub.com/disgoorg/disgo/pull/374)
- Add newly documented member flags by
[@&#8203;sebm253](https://togithub.com/sebm253) in
disgoorg/disgo@3c62607
- Add `rest.GetActiveGuildThreads` by
[@&#8203;myrkvi](https://togithub.com/myrkvi) in
[https://github.com/disgoorg/disgo/pull/381](https://togithub.com/disgoorg/disgo/pull/381)
- Change `GuildPrivateThreadCreate.Invitable` to a pointer by
[@&#8203;myrkvi](https://togithub.com/myrkvi) in
[https://github.com/disgoorg/disgo/pull/379](https://togithub.com/disgoorg/disgo/pull/379)
- Expose cache interfaces by
[@&#8203;topi314](https://togithub.com/topi314) in
[https://github.com/disgoorg/disgo/pull/382](https://togithub.com/disgoorg/disgo/pull/382)
- Remove `Summary` from `Application` by
[@&#8203;sebm253](https://togithub.com/sebm253) in
disgoorg/disgo@ba3906d

#### Breaking Changes

- `GuildPrivateThreadCreate.Invitable` has been changed from `bool` to
`*bool`
- `Summary` has been removed from `Application`. this field was an empty
string for a long time

**Full Changelog**:
disgoorg/disgo@v0.18.10...v0.18.11

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/NLLCommunity/heimdallr).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
apricotbucket28 pushed a commit to apricotbucket28/disgo that referenced this pull request Feb 16, 2025
… Invitable (disgoorg#379)

* fix: Invitable=false does nothing since it is annotated as omitempty.

* fix: Use pointer to bool for Invitable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants