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

Complement GuildParams struct to comply with Discord's API #1255

Merged
merged 4 commits into from
Dec 17, 2022

Conversation

zekroTJA
Copy link
Contributor

@zekroTJA zekroTJA commented Oct 1, 2022

I've updated the GuildParams struct to be complient with the Modify Guild payload as described in the Discord API docs. Therefore, I've also added the two System Channel Flags SUPPRESS_GUILD_REMINDER_NOTIFICATIONS and SUPPRESS_JOIN_NOTIFICATION_REPLIES to the SystemChannelFlag constants.

This pull request should fix issue #994.

structs.go Outdated Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
structs.go Outdated Show resolved Hide resolved
@FedorLap2006 FedorLap2006 linked an issue Oct 12, 2022 that may be closed by this pull request
@FedorLap2006 FedorLap2006 added feature Major feature implementation high priority Issue or PR with high priority of merge labels Oct 17, 2022
@FedorLap2006 FedorLap2006 added the help wanted Requires additional help label Oct 23, 2022
@FedorLap2006 FedorLap2006 merged commit e741fc2 into bwmarrin:master Dec 17, 2022
@Bendodroid
Copy link

Thanks for the fix folks! ❤️

(And special thanks to @zekroTJA for that tutorial series on YT all those years ago about making Discord Bots in Java that (sort of) got me into programming :P)

@FedorLap2006
Copy link
Collaborator

FedorLap2006 commented Dec 18, 2022

One thing however, I might follow-up this PR with implementation of Nullable fields (which would make most fields a custom pointer type), so I wouldn't recommend using the update right away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Major feature implementation help wanted Requires additional help high priority Issue or PR with high priority of merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GuildParams missing fields
3 participants