Skip to content

Commit

Permalink
Add auto moderation rules endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
SQKo committed Jun 17, 2022
1 parent e8036b7 commit c94f1c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Discord/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ class Endpoint
// PUT, PATCH, DELETE
public const GUILD_TEMPLATE = self::GUILD.'/templates/:template_code';

// GET, POST
public const GUILD_AUTO_MODERATION_RULES = self::GUILD.'/auto-moderation/rules';
// GET, PATCH, DELETE
public const GUILD_AUTO_MODERATION_RULE = self::GUILD.'/auto-moderation/rules/:auto_moderation_rule_id';

// GET, PATCH
public const USER_CURRENT = 'users/@me';
// GET
Expand Down
2 changes: 1 addition & 1 deletion src/Discord/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Http
*
* @var string
*/
public const VERSION = 'v9.0.11';
public const VERSION = 'v9.0.12';

/**
* Current Discord HTTP API version.
Expand Down

0 comments on commit c94f1c5

Please sign in to comment.