```transaction { Filter.new { guild = ...
# exposed
z
Copy code
transaction {
    Filter.new {
        guild = Guild.findById(guildId)!!
        pattern = arguments.filter.toString()
        action = FilterAction.REPLY
        response = arguments.content
    }
}
Is there some simpler way of doing this? like instead I would fetch the Guild database object and then insert into its filters column