Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle message delete success / error events
- Loading branch information
1 parent
c32c1cd
commit 98a06d7
Showing
3 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
chat/src/main/java/com/github/twitch4j/chat/events/channel/MessageDeleteError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.twitch4j.chat.events.channel; | ||
|
||
import com.github.twitch4j.chat.events.AbstractChannelEvent; | ||
import com.github.twitch4j.common.events.domain.EventChannel; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
import lombok.Value; | ||
|
||
/** | ||
* Failed to delete a message | ||
*/ | ||
@Value | ||
@Getter | ||
@EqualsAndHashCode(callSuper = false) | ||
@ToString | ||
public class MessageDeleteError extends AbstractChannelEvent { | ||
|
||
/** | ||
* Event Constructor | ||
* | ||
* @param channel The channel that this event originates from. | ||
*/ | ||
public MessageDeleteError(EventChannel channel) { | ||
super(channel); | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
chat/src/main/java/com/github/twitch4j/chat/events/channel/MessageDeleteSuccess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.twitch4j.chat.events.channel; | ||
|
||
import com.github.twitch4j.chat.events.AbstractChannelEvent; | ||
import com.github.twitch4j.common.events.domain.EventChannel; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
import lombok.Value; | ||
|
||
/** | ||
* Successfully deleted a message | ||
*/ | ||
@Value | ||
@Getter | ||
@EqualsAndHashCode(callSuper = false) | ||
@ToString | ||
public class MessageDeleteSuccess extends AbstractChannelEvent { | ||
|
||
/** | ||
* Event Constructor | ||
* | ||
* @param channel The channel that this event originates from. | ||
*/ | ||
public MessageDeleteSuccess(EventChannel channel) { | ||
super(channel); | ||
} | ||
|
||
} |