@@ -10,7 +10,7 @@ public extension DiscordREST {
10
10
_ applicationId: Snowflake
11
11
) async throws -> T {
12
12
return try await getReq (
13
- path: " applications/ \( applicationId) /commands/ "
13
+ path: " applications/ \( applicationId) /commands "
14
14
)
15
15
}
16
16
/// Create Global Application Command
@@ -21,7 +21,7 @@ public extension DiscordREST {
21
21
_ body: B
22
22
) async throws -> T {
23
23
return try await postReq (
24
- path: " applications/ \( applicationId) /commands/ " ,
24
+ path: " applications/ \( applicationId) /commands " ,
25
25
body: body
26
26
)
27
27
}
@@ -33,7 +33,7 @@ public extension DiscordREST {
33
33
_ commandId: Snowflake
34
34
) async throws -> T {
35
35
return try await getReq (
36
- path: " applications/ \( applicationId) /commands/ \( commandId) / "
36
+ path: " applications/ \( applicationId) /commands/ \( commandId) "
37
37
)
38
38
}
39
39
/// Edit Global Application Command
@@ -45,7 +45,7 @@ public extension DiscordREST {
45
45
_ body: B
46
46
) async throws {
47
47
try await patchReq (
48
- path: " applications/ \( applicationId) /commands/ \( commandId) / " ,
48
+ path: " applications/ \( applicationId) /commands/ \( commandId) " ,
49
49
body: body
50
50
)
51
51
}
@@ -57,7 +57,7 @@ public extension DiscordREST {
57
57
_ commandId: Snowflake
58
58
) async throws {
59
59
try await deleteReq (
60
- path: " applications/ \( applicationId) /commands/ \( commandId) / "
60
+ path: " applications/ \( applicationId) /commands/ \( commandId) "
61
61
)
62
62
}
63
63
/// Bulk Overwrite Global Application Commands
@@ -68,7 +68,7 @@ public extension DiscordREST {
68
68
_ body: B
69
69
) async throws -> T {
70
70
return try await putReq (
71
- path: " applications/ \( applicationId) /commands/ " ,
71
+ path: " applications/ \( applicationId) /commands " ,
72
72
body: body
73
73
)
74
74
}
@@ -80,7 +80,7 @@ public extension DiscordREST {
80
80
_ guildId: Snowflake
81
81
) async throws -> T {
82
82
return try await getReq (
83
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ "
83
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands "
84
84
)
85
85
}
86
86
/// Create Guild Application Command
@@ -92,7 +92,7 @@ public extension DiscordREST {
92
92
_ body: B
93
93
) async throws -> T {
94
94
return try await postReq (
95
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ " ,
95
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands " ,
96
96
body: body
97
97
)
98
98
}
@@ -105,7 +105,7 @@ public extension DiscordREST {
105
105
_ commandId: Snowflake
106
106
) async throws -> T {
107
107
return try await getReq (
108
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) / "
108
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) "
109
109
)
110
110
}
111
111
/// Edit Guild Application Command
@@ -118,7 +118,7 @@ public extension DiscordREST {
118
118
_ body: B
119
119
) async throws {
120
120
try await patchReq (
121
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) / " ,
121
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) " ,
122
122
body: body
123
123
)
124
124
}
@@ -131,7 +131,7 @@ public extension DiscordREST {
131
131
_ commandId: Snowflake
132
132
) async throws {
133
133
try await deleteReq (
134
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) / "
134
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) "
135
135
)
136
136
}
137
137
/// Bulk Overwrite Guild Application Commands
@@ -143,7 +143,7 @@ public extension DiscordREST {
143
143
_ body: B
144
144
) async throws -> T {
145
145
return try await putReq (
146
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ " ,
146
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands " ,
147
147
body: body
148
148
)
149
149
}
@@ -155,7 +155,7 @@ public extension DiscordREST {
155
155
_ guildId: Snowflake
156
156
) async throws -> T {
157
157
return try await getReq (
158
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/permissions/ "
158
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/permissions "
159
159
)
160
160
}
161
161
/// Get Application Command Permissions
@@ -167,7 +167,7 @@ public extension DiscordREST {
167
167
_ commandId: Snowflake
168
168
) async throws -> T {
169
169
return try await getReq (
170
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) /permissions/ "
170
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) /permissions "
171
171
)
172
172
}
173
173
/// Edit Application Command Permissions
@@ -180,7 +180,7 @@ public extension DiscordREST {
180
180
_ body: B
181
181
) async throws -> T {
182
182
return try await putReq (
183
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) /permissions/ " ,
183
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/ \( commandId) /permissions " ,
184
184
body: body
185
185
)
186
186
}
@@ -193,7 +193,7 @@ public extension DiscordREST {
193
193
_ body: B
194
194
) async throws -> T {
195
195
return try await putReq (
196
- path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/permissions/ " ,
196
+ path: " applications/ \( applicationId) /guilds/ \( guildId) /commands/permissions " ,
197
197
body: body
198
198
)
199
199
}
0 commit comments