mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Auto mod blame wolf (#2267)
* feat(meister): add automod * fix(test); rest error with code * fix(rest): log error nicely * fix(test): disable benchmark test until gateway rewrite * fix(automod): enum should start with 1 * fix(helper): better undefined handling of metadata * fix(transfomrers): automod transformers * fix(tests): add some automod tests * Update types/shared.ts Co-authored-by: meister03 <69507874+meister03@users.noreply.github.com> * fix: changes discord made recently * fix(fmt): i hate deno fmt but i love itoh Co-authored-by: meister03 <69507874+meister03@users.noreply.github.com> Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
This commit is contained in:
co-authored by
meister03
LTS20050703
parent
4263b7b787
commit
ccd8506c81
@@ -41,6 +41,14 @@ export const routes = {
|
||||
return `/gateway/bot`;
|
||||
},
|
||||
|
||||
// Automod Endpoints
|
||||
AUTOMOD_RULES: (guildId: bigint) => {
|
||||
return `/guilds/${guildId}/auto-moderation/rules`;
|
||||
},
|
||||
AUTOMOD_RULE: (guildId: bigint, ruleId: bigint) => {
|
||||
return `/guilds/${guildId}/auto-moderation/rules/${ruleId}`;
|
||||
},
|
||||
|
||||
// Channel Endpoints
|
||||
CHANNEL: (channelId: bigint) => {
|
||||
return `/channels/${channelId}`;
|
||||
|
||||
Reference in New Issue
Block a user