New option for the moderation bot: forbid duplicate messages (#516).
This commit is contained in:
@ -97,6 +97,7 @@ interface ChannelConfigurationOptions {
|
||||
quotes: ChannelQuotes[]
|
||||
commands: ChannelCommands[]
|
||||
forbidSpecialChars: ChannelForbidSpecialChars
|
||||
noDuplicate: ChannelNoDuplicate
|
||||
// TODO: bannedJIDs: string[]
|
||||
}
|
||||
slowMode: {
|
||||
@ -140,6 +141,13 @@ interface ChannelForbidSpecialChars {
|
||||
applyToModerators: boolean
|
||||
}
|
||||
|
||||
interface ChannelNoDuplicate {
|
||||
enabled: boolean
|
||||
reason: string
|
||||
delay: number
|
||||
applyToModerators: boolean
|
||||
}
|
||||
|
||||
interface ChannelConfiguration {
|
||||
channel: ChannelInfos
|
||||
configuration: ChannelConfigurationOptions
|
||||
|
Reference in New Issue
Block a user