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

fix Guild Member flag constant values #1104

Merged
merged 1 commit into from Apr 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/Discord/Parts/User/Member.php
Expand Up @@ -54,7 +54,7 @@
* @property bool|null $pending Whether the user has not yet passed the guild's Membership Screening requirements.
* @property RolePermission|null $permissions Total permissions of the member in the channel, including overwrites, returned when in the interaction object.
* @property Carbon|null $communication_disabled_until When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out.
* @property int $flags Guild member flags.
* @property int $flags Guild member flags represented as a bit set, defaults to `0`.
* @property string|null $guild_id The unique identifier of the guild that the member belongs to.
* @property-read Guild|null $guild The guild that the member belongs to.
*
Expand All @@ -68,10 +68,11 @@
*/
class Member extends Part
{
public const FLAGS_DID_REJOIN = 0;
public const FLAGS_COMPLETED_ONBOARDING = 1;
public const FLAGS_BYPASSES_VERIFICATION = 2;
public const FLAGS_STARTED_ONBOARDING = 3;
public const FLAGS_DID_REJOIN = (1 << 0);
public const FLAGS_COMPLETED_ONBOARDING = (1 << 1);
public const FLAGS_BYPASSES_VERIFICATION = (1 << 2);
public const FLAGS_STARTED_ONBOARDING = (1 << 3);

/**
* {@inheritDoc}
*/
Expand Down