const AllowDenyChatTypeSchema = z
.union([
z.literal("direct"),
z.literal("group"),
z.literal("channel"), /** @deprecated Use `direct` instead. Kept for backward compatibility. */
z.literal("dm"),
])
.optional();
export function createAllowDenyChannelRulesSchema() { return z
.object({ default: AllowDenyActionSchema.optional(),
rules: z
.array(
z
.object({
action: AllowDenyActionSchema,
match: z
.object({
channel: z.string().optional(),
chatType: AllowDenyChatTypeSchema,
keyPrefix: z.string().optional(),
rawKeyPrefix: z.string().optional(),
})
.strict()
.optional(),
})
.strict(),
)
.optional(),
})
.strict()
.optional();
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-06-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.