add message snipe feature
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
This commit is contained in:
49
src/main/java/cc/fascinated/bat/model/DiscordMessage.java
Normal file
49
src/main/java/cc/fascinated/bat/model/DiscordMessage.java
Normal file
@ -0,0 +1,49 @@
|
||||
package cc.fascinated.bat.model;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.redis.core.RedisHash;
|
||||
|
||||
/**
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter @Setter
|
||||
@RedisHash(value = "DiscordMessage", timeToLive = 86400) // 24 hours
|
||||
public class DiscordMessage {
|
||||
/**
|
||||
* The snowflake ID of the message
|
||||
*/
|
||||
private final String id;
|
||||
|
||||
/**
|
||||
* The timestamp when the message was sent
|
||||
*/
|
||||
private final long timestamp;
|
||||
|
||||
/**
|
||||
* The snowflake ID of the channel the message was sent in
|
||||
*/
|
||||
private final String channelId;
|
||||
|
||||
/**
|
||||
* The snowflake ID of the guild the message was sent in
|
||||
*/
|
||||
private final String guildId;
|
||||
|
||||
/**
|
||||
* The snowflake ID of the author of the message
|
||||
*/
|
||||
private final String authorId;
|
||||
|
||||
/**
|
||||
* The content of the message
|
||||
*/
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* Whether the message was deleted
|
||||
*/
|
||||
private boolean deleted;
|
||||
}
|
Reference in New Issue
Block a user