mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-04 06:17:26 +00:00
[Add] MessageSource 将MiraiMessageEvent的MessageSource分离成独立的类;
[Change] SpringCQMessageEvent, MiraiMessageEvent 适配新的更改;
This commit is contained in:
23
src/main/java/net/lamgc/cgj/bot/message/MessageSource.java
Normal file
23
src/main/java/net/lamgc/cgj/bot/message/MessageSource.java
Normal file
@ -0,0 +1,23 @@
|
||||
package net.lamgc.cgj.bot.message;
|
||||
|
||||
/**
|
||||
* 消息来源
|
||||
*/
|
||||
public enum MessageSource {
|
||||
/**
|
||||
* 私聊消息
|
||||
*/
|
||||
Private,
|
||||
/**
|
||||
* 群组消息
|
||||
*/
|
||||
Group,
|
||||
/**
|
||||
* 讨论组消息
|
||||
*/
|
||||
Discuss,
|
||||
/**
|
||||
* 未知来源
|
||||
*/
|
||||
Unknown
|
||||
}
|
Reference in New Issue
Block a user