mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
11 lines
308 B
TypeScript
11 lines
308 B
TypeScript
import { Bot } from "../../../bot.ts";
|
|
|
|
/** Delete a rule currently configured for guild. */
|
|
export async function deleteAutomodRule(bot: Bot, guildId: bigint, ruleId: bigint) {
|
|
await bot.rest.runMethod<undefined>(
|
|
bot.rest,
|
|
"DELETE",
|
|
bot.constants.routes.AUTOMOD_RULE(guildId, ruleId),
|
|
);
|
|
}
|