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

Commit 98bcd21

Browse files
committed
fix(build): no desc
1 parent 94be00c commit 98bcd21

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
</execution>
4747
</executions>
4848
</plugin>
49-
<plugin>
50-
<groupId>org.codehaus.mojo</groupId>
51-
<artifactId>versions-maven-plugin</artifactId>
52-
<version>2.3</version>
53-
</plugin>
5449
<plugin>
5550
<groupId>org.apache.maven.plugins</groupId>
5651
<artifactId>maven-compiler-plugin</artifactId>
@@ -124,12 +119,6 @@
124119
<version>1.5.4</version>
125120
<scope>compile</scope>
126121
</dependency>
127-
<dependency>
128-
<groupId>org.yaml</groupId>
129-
<artifactId>snakeyaml</artifactId>
130-
<version>2.1</version>
131-
<scope>compile</scope>
132-
</dependency>
133122
<dependency>
134123
<groupId>org.slf4j</groupId>
135124
<artifactId>slf4j-api</artifactId>

src/main/java/io/github/minecraftchampions/dodoopenjava/api/v2/ChannelMessageApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public Result sendChannelPictureMessage(String channelId, File file) {
213213
if (!file.exists()) {
214214
throw new RuntimeException("传入的文件不存在");
215215
}
216-
JSONObject jsonObject = ResourceApi.uploadResource(bot.getAuthorization(), file.getPath()).getData();
216+
JSONObject jsonObject = bot.getApi().getResourceApi().uploadResource(file.getPath()).getData();
217217
int width = jsonObject.getInt("width");
218218
int height = jsonObject.getInt("height");
219219
String url = jsonObject.getString("url");

0 commit comments

Comments
 (0)