This repository was archived by the owner on May 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/main/java/io/github/minecraftchampions/dodoopenjava/command Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments