Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherZane committed Dec 18, 2023
1 parent f1b0918 commit 800d210
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Disqord.Core/Enums/TeamMemberRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum TeamMemberRole
Developer,

/// <summary>
/// Represents a read-only team member.
/// Represents a team member with read-only access.
/// </summary>
[EnumMember(Value = "read_only")]
ReadOnly
Expand Down
14 changes: 7 additions & 7 deletions src/Disqord.Gateway/Entities/Local/LocalActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static LocalActivity Watching(string name)
return new(name, ActivityType.Watching);
}

public static LocalActivity Custom(string state)
public static LocalActivity Custom(string text)
{
return new("Custom Status", ActivityType.Custom, state: state);
return new("Custom Status", ActivityType.Custom, text: text);
}

public static LocalActivity Competing(string name)
Expand All @@ -42,7 +42,7 @@ public static LocalActivity Competing(string name)

public Optional<ActivityType> Type { get; set; }

public Optional<string> State { get; set; }
public Optional<string> Text { get; set; }

public LocalActivity()
{ }
Expand All @@ -52,15 +52,15 @@ protected LocalActivity(LocalActivity other)
Name = other.Name;
Url = other.Url;
Type = other.Type;
State = other.State;
Text = other.Text;
}

public LocalActivity(string name, ActivityType type, string? url = null, string? state = null)
public LocalActivity(string name, ActivityType type, string? url = null, string? text = null)
{
Name = name;
Url = Optional.FromNullable(url);
Type = type;
State = Optional.FromNullable(state);
Text = Optional.FromNullable(text);
}

public LocalActivity(string name, string url)
Expand All @@ -86,7 +86,7 @@ public virtual ActivityJsonModel ToModel()
Name = Name.Value,
Type = Type.Value,
Url = Url,
State = State
State = Text
};
}
}

0 comments on commit 800d210

Please sign in to comment.