@@ -148,5 +148,42 @@ var (
148
148
EndpointOauth2 = EndpointAPI + "oauth2/"
149
149
EndpointApplications = EndpointOauth2 + "applications"
150
150
EndpointApplication = func (aID int64 ) string { return EndpointApplications + "/" + StrID (aID ) }
151
+ EndpointApplicationMe = EndpointApplications + "/@me"
151
152
EndpointApplicationsBot = func (aID int64 ) string { return EndpointApplications + "/" + StrID (aID ) + "/bot" }
153
+
154
+ EndpointApplicationNonOauth2 = func (aID int64 ) string { return EndpointAPI + "applications/" + StrID (aID ) }
155
+ EndpointApplicationCommands = func (aID int64 ) string { return EndpointApplicationNonOauth2 (aID ) + "/commands" }
156
+ EndpointApplicationCommand = func (aID int64 , cmdID int64 ) string {
157
+ return EndpointApplicationNonOauth2 (aID ) + "/commands/" + StrID (cmdID )
158
+ }
159
+
160
+ EndpointApplicationGuildCommands = func (aID int64 , gID int64 ) string {
161
+ return EndpointApplicationNonOauth2 (aID ) + "/guilds/" + StrID (gID ) + "/commands"
162
+ }
163
+
164
+ EndpointApplicationGuildCommand = func (aID int64 , gID int64 , cmdID int64 ) string {
165
+ return EndpointApplicationGuildCommands (aID , gID ) + "/" + StrID (cmdID )
166
+ }
167
+
168
+ EndpointApplicationGuildCommandsPermissions = func (aID int64 , gID int64 ) string {
169
+ return EndpointApplicationGuildCommands (aID , gID ) + "/permissions"
170
+ }
171
+
172
+ EndpointApplicationGuildCommandPermissions = func (aID int64 , gID int64 , cmdID int64 ) string {
173
+ return EndpointApplicationGuildCommand (aID , gID , cmdID ) + "/permissions"
174
+ }
175
+
176
+ EndpointInteractions = EndpointAPI + "interactions"
177
+ EndpointInteractionCallback = func (interactionID int64 , token string ) string {
178
+ return EndpointInteractions + "/" + StrID (interactionID ) + "/" + token + "/callback"
179
+ }
180
+ EndpointWebhookInteraction = func (applicationID int64 , token string ) string {
181
+ return EndpointWebhooks + "/" + StrID (applicationID ) + "/" + token
182
+ }
183
+ EndpointInteractionOriginalMessage = func (applicationID int64 , token string ) string {
184
+ return EndpointWebhookInteraction (applicationID , token ) + "/messages/@original"
185
+ }
186
+ EndpointInteractionFollowupMessage = func (applicationID int64 , token string , messageID int64 ) string {
187
+ return EndpointWebhookInteraction (applicationID , token ) + "/messages/" + StrID (messageID )
188
+ }
152
189
)
0 commit comments