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: add new fields to helix banned routes #407

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;

import java.time.Instant;

Expand Down Expand Up @@ -79,6 +80,27 @@ public static class EventData {
* When the timeout expires, if applicable
*/
private Instant expiresAt;

/**
* The reason for the ban if provided by the moderator.
*/
@Nullable
private String reason;

/**
* User ID of the moderator who initiated the ban.
*/
private String moderatorId;

/**
* Login name of the moderator who initiated the ban.
*/
private String moderatorLogin;

/**
* Display name of the moderator who initiated the ban.
*/
private String moderatorName;
}

public enum EventType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Setter;
import org.jetbrains.annotations.Nullable;

import java.time.Instant;

Expand Down Expand Up @@ -32,4 +33,25 @@ public class BannedUser {
* Timestamp for timeouts, empty for bans
*/
private Instant expiresAt;

/**
* The reason for the ban if provided by the moderator.
*/
@Nullable
private String reason;

/**
* User ID of the moderator who initiated the ban.
*/
private String moderatorId;

/**
* Login name of the moderator who initiated the ban.
*/
private String moderatorLogin;

/**
* Display name of the moderator who initiated the ban.
*/
private String moderatorName;
}