parent
cd37e22b10
commit
ae8157302e
@ -546,6 +546,7 @@ class GuildAuditLogsEntry {
|
|||||||
this.extra = {
|
this.extra = {
|
||||||
autoModerationRuleName: data.options.auto_moderation_rule_name,
|
autoModerationRuleName: data.options.auto_moderation_rule_name,
|
||||||
autoModerationRuleTriggerType: AutoModerationRuleTriggerTypes[data.options.auto_moderation_rule_trigger_type],
|
autoModerationRuleTriggerType: AutoModerationRuleTriggerTypes[data.options.auto_moderation_rule_trigger_type],
|
||||||
|
channel: guild.client.channels.cache.get(data.options?.channel_id) ?? { id: data.options?.channel_id },
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@ -6215,14 +6215,17 @@ export interface GuildAuditLogsEntryExtraField {
|
|||||||
AUTO_MODERATION_BLOCK_MESSAGE: {
|
AUTO_MODERATION_BLOCK_MESSAGE: {
|
||||||
autoModerationRuleName: string;
|
autoModerationRuleName: string;
|
||||||
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
|
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
|
||||||
|
channel: GuildTextBasedChannel | { id: Snowflake };
|
||||||
};
|
};
|
||||||
AUTO_MODERATION_FLAG_TO_CHANNEL: {
|
AUTO_MODERATION_FLAG_TO_CHANNEL: {
|
||||||
autoModerationRuleName: string;
|
autoModerationRuleName: string;
|
||||||
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
|
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
|
||||||
|
channel: GuildTextBasedChannel | { id: Snowflake };
|
||||||
};
|
};
|
||||||
AUTO_MODERATION_USER_COMMUNICATIONDISABLED: {
|
AUTO_MODERATION_USER_COMMUNICATIONDISABLED: {
|
||||||
autoModerationRuleName: string;
|
autoModerationRuleName: string;
|
||||||
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
|
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
|
||||||
|
channel: GuildTextBasedChannel | { id: Snowflake };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user