@@ -27,27 +27,29 @@ class Endpoint
27
27
// GET, POST
28
28
public const APPLICATION_ENTITLEMENTS = 'applications/:application_id/entitlements ' ;
29
29
// DELETE
30
- public const APPLICATION_ENTITLEMENT = 'applications/:application_id/entitlements/:entitlement_id ' ;
30
+ public const APPLICATION_ENTITLEMENT = self ::APPLICATION_ENTITLEMENTS .'/:entitlement_id ' ;
31
+ // POST
32
+ public const APPLICATION_ENTITLEMENT_CONSUME = self ::APPLICATION_ENTITLEMENT .'/consume ' ;
31
33
// GET, POST, PUT
32
34
public const GLOBAL_APPLICATION_COMMANDS = 'applications/:application_id/commands ' ;
33
35
// GET, PATCH, DELETE
34
- public const GLOBAL_APPLICATION_COMMAND = ' applications/:application_id/commands /:command_id ' ;
36
+ public const GLOBAL_APPLICATION_COMMAND = self :: GLOBAL_APPLICATION_COMMANDS . ' /:command_id ' ;
35
37
// GET, POST, PUT
36
38
public const GUILD_APPLICATION_COMMANDS = 'applications/:application_id/guilds/:guild_id/commands ' ;
37
39
// GET, PUT
38
- public const GUILD_APPLICATION_COMMANDS_PERMISSIONS = ' applications/:application_id/guilds/:guild_id/commands /permissions ' ;
40
+ public const GUILD_APPLICATION_COMMANDS_PERMISSIONS = self :: GUILD_APPLICATION_COMMANDS . ' /permissions ' ;
39
41
// GET, PATCH, DELETE
40
- public const GUILD_APPLICATION_COMMAND = ' applications/:application_id/guilds/:guild_id/commands /:command_id ' ;
42
+ public const GUILD_APPLICATION_COMMAND = self :: GUILD_APPLICATION_COMMANDS . ' /:command_id ' ;
41
43
// GET, PUT
42
- public const GUILD_APPLICATION_COMMAND_PERMISSIONS = ' applications/:application_id/guilds/:guild_id/commands /:command_id/permissions ' ;
44
+ public const GUILD_APPLICATION_COMMAND_PERMISSIONS = self :: GUILD_APPLICATION_COMMANDS . ' /:command_id/permissions ' ;
43
45
// POST
44
46
public const INTERACTION_RESPONSE = 'interactions/:interaction_id/:interaction_token/callback ' ;
45
- // PATCH, DELETE
46
- public const ORIGINAL_INTERACTION_RESPONSE = 'webhooks/:application_id/:interaction_token/messages/@original ' ;
47
47
// POST
48
48
public const CREATE_INTERACTION_FOLLOW_UP = 'webhooks/:application_id/:interaction_token ' ;
49
49
// PATCH, DELETE
50
- public const INTERACTION_FOLLOW_UP = 'webhooks/:application_id/:interaction_token/messages/:message_id ' ;
50
+ public const ORIGINAL_INTERACTION_RESPONSE = self ::CREATE_INTERACTION_FOLLOW_UP .'/messages/@original ' ;
51
+ // PATCH, DELETE
52
+ public const INTERACTION_FOLLOW_UP = self ::CREATE_INTERACTION_FOLLOW_UP .'/messages/:message_id ' ;
51
53
52
54
// GET
53
55
public const AUDIT_LOG = 'guilds/:guild_id/audit-logs ' ;
0 commit comments