UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

32 lines (31 loc) 1.52 kB
import type { RESTGetAPIAutoModerationRuleResult, RESTGetAPIAutoModerationRulesResult, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, Snowflake } from "discord-api-types/v10"; /** * Get a list of a guild's automod rules. * @param guild The guild to get the rules from */ export declare function listAutomodRules(guild: Snowflake): Promise<RESTGetAPIAutoModerationRulesResult>; /** * Get a specific automod rule. * @param guild The guild to get the rule from * @param rule The rule to get */ export declare function getAutomodRule(guild: Snowflake, rule: string): Promise<RESTGetAPIAutoModerationRuleResult>; /** * Create a new automod rule. * @param guild The guild to create the rule for * @param data The rule data */ export declare function createAutomodRule(guild: Snowflake, data: RESTPostAPIAutoModerationRuleJSONBody): Promise<RESTPostAPIAutoModerationRuleResult>; /** * Update an automod rule. * @param guild The guild to update the rule in * @param rule The rule to update * @param data The new rule data */ export declare function modifyAutomodRule(guild: Snowflake, rule: string, data: RESTPatchAPIAutoModerationRuleJSONBody): Promise<RESTPatchAPIAutoModerationRuleResult>; /** * Delete an automod rule. * @param guild The guild to delete the rule from * @param rule The rule to delete */ export declare function deleteAutomodRule(guild: Snowflake, rule: string): Promise<void>;