Moderation configuration screen: WIP.

This commit is contained in:
John Livingston
2023-08-09 16:16:02 +02:00
parent 09b1c889ff
commit 0987a036a0
10 changed files with 275 additions and 64 deletions

View File

@ -46,21 +46,29 @@ interface ProsodyListRoomsResultSuccess {
type ProsodyListRoomsResult = ProsodyListRoomsResultError | ProsodyListRoomsResultSuccess
interface ChannelInfos {
id: number
name: string
displayName: string
}
interface ChannelModerationOptions {
channel: {
id: number
name: string
displayName: string
}
bot: boolean
forbiddenWords: string[]
bannedJIDs: string[]
}
interface ChannelModeration {
channel: ChannelInfos
moderation: ChannelModerationOptions
}
export type {
ConverseJSTheme,
InitConverseJSParams,
ProsodyListRoomsResult,
ProsodyListRoomsResultRoom,
ChannelModerationOptions
ChannelInfos,
ChannelModerationOptions,
ChannelModeration
}