Skip to content

Commit 1be6e8b

Browse files
committed
Add auto moderation rules endpoints
1 parent 46a4286 commit 1be6e8b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Discord/Endpoint.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ class Endpoint
203203
// PUT, PATCH, DELETE
204204
public const GUILD_TEMPLATE = self::GUILD.'/templates/:template_code';
205205

206+
// GET, POST
207+
public const GUILD_AUTO_MODERATION_RULES = self::GUILD.'/auto-moderation/rules';
208+
// GET, PATCH, DELETE
209+
public const GUILD_AUTO_MODERATION_RULE = self::GUILD.'/:auto_moderation_rule_id';
210+
206211
// GET, PATCH
207212
public const USER_CURRENT = 'users/@me';
208213
// GET

src/Discord/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Http
3737
*
3838
* @var string
3939
*/
40-
public const VERSION = 'v10.0.3';
40+
public const VERSION = 'v10.0.4';
4141

4242
/**
4343
* Current Discord HTTP API version.

0 commit comments

Comments
 (0)