Skip to content

Commit 53e85f2

Browse files
authored
Merge pull request #239 from simple-robot/fix-#238
修复CreateInviteApi请求路径错误的问题
2 parents 2008c4d + 796261a commit 53e85f2

File tree

1 file changed

+1
-4
lines changed
  • simbot-component-kook-api/src/commonMain/kotlin/love/forte/simbot/kook/api/invite

1 file changed

+1
-4
lines changed

simbot-component-kook-api/src/commonMain/kotlin/love/forte/simbot/kook/api/invite/CreateInviteApi.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ public class CreateInviteApi private constructor(
3838
) : KookPostApi<CreatedInvite>() {
3939
public companion object Factory {
4040
// /api/v3/invite/create POST
41-
private val PATH = ApiPath.create("invite", "list")
42-
43-
// TODO Empty CreateInviteApi
44-
private val EMPTY = CreateInviteApi()
41+
private val PATH = ApiPath.create("invite", "create")
4542

4643
/**
4744
* 通过 [服务器id][guildId] 构建一个 [创建邀请链接][CreateInviteApi] 实例。

0 commit comments

Comments
 (0)