Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit dc6f4ef

Browse files
committed
更新
1 parent 2ac521d commit dc6f4ef

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>io.github.minecraftchampions.dodoopenjava</groupId>
1515
<artifactId>DodoOpenJava</artifactId>
16-
<version>3.0.1</version>
16+
<version>3.0.2</version>
1717
<packaging>jar</packaging>
1818
<name>DodoOpenJava</name>
1919

src/main/java/io/github/minecraftchampions/dodoopenjava/command/CommandSender.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ public class CommandSender {
2626
*/
2727
private final String IslandSourceId;
2828

29+
/**
30+
* -- GETTER --
31+
* 获取触发命令的频道号
32+
*/
33+
private final String ChannelId;
34+
2935
/**
3036
* -- GETTER --
3137
* 获取头像URL
@@ -76,6 +82,7 @@ public CommandSender(JSONObject jsontext, Bot bot) {
7682
this.SenderDodoSourceId = jsontext.getJSONObject("data").getJSONObject("eventBody").getString("dodoSourceId");
7783
this.IslandSourceId = jsontext.getJSONObject("data").getJSONObject("eventBody").getString("islandSourceId");
7884
this.MessageId = jsontext.getJSONObject("data").getJSONObject("eventBody").getString("messageId");
85+
this.ChannelId = jsontext.getJSONObject("data").getJSONObject("eventBody").getString("channelId");
7986
}
8087

8188
/**

0 commit comments

Comments
 (0)